Skip to content
Snippets Groups Projects
Verified Commit 36bb60ca authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Do not unmap stack while it is being used, add a comment to fix it later

parent 2ed55a92
No related branches found
No related tags found
No related merge requests found
Pipeline #8506 passed with warnings
......@@ -225,7 +225,8 @@ pub unsafe extern "C" fn pte_osThreadDelete(handle: pte_osThreadHandle) -> pte_o
pte_osMutexLock(&mut pid_stacks_lock);
if let Some(ref mut stacks) = pid_stacks {
if let Some((stack_base, stack_size)) = stacks.remove(&handle) {
sys_mman::munmap(stack_base, stack_size);
//TODO: this currently unmaps the thread's stack, while it is being used!
//sys_mman::munmap(stack_base, stack_size);
}
}
pte_osMutexUnlock(&mut pid_stacks_lock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment