sched: enforce ref-counting on current task/thread pointers

This commit is contained in:
2026-04-01 18:17:05 +01:00
parent 15c2207ab9
commit 512356ac2d
28 changed files with 364 additions and 103 deletions
+5 -3
View File
@@ -1261,9 +1261,11 @@ static kern_status_t request_missing_page(
/* here:
* `region` is locked.
* `object` is unlocked.
* `irq_flags` must be restored when `region` is unlocked.
* the relevant page in `object` may or may not be committed.
* if it isn't, it needs to be requested.
* `irq_flags` must be restored when `region` is
* unlocked.
* the relevant page in `object` may or may
* not be committed. if it isn't, it needs to be
* requested.
*/
vm_object_lock(object);
address_space_unlock(region);