sched: enforce ref-counting on current task/thread pointers
This commit is contained in:
+5
-3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user