mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-13 22:01:53 +00:00
Kernel: Make sure we free the thread stack on thread exit
This adds two new arguments to the thread_exit system call which let a thread unmap an arbitrary VM range on thread exit. LibPthread uses this functionality to unmap the thread stack. Fixes #7267.
This commit is contained in:
parent
95c2166ca9
commit
42d667645d
Notes:
sideshowbarker
2024-07-18 17:13:15 +09:00
Author: https://github.com/gunnarbeutner
Commit: 42d667645d
Pull-request: https://github.com/SerenityOS/serenity/pull/7518
Issue: https://github.com/SerenityOS/serenity/issues/7267
Reviewed-by: https://github.com/bgianfo
4 changed files with 22 additions and 9 deletions
|
@ -97,7 +97,7 @@ KResultOr<FlatPtr> handle(RegisterState& regs, FlatPtr function, FlatPtr arg1, F
|
|||
process.sys$exit(arg1);
|
||||
break;
|
||||
case SC_exit_thread:
|
||||
process.sys$exit_thread(arg1);
|
||||
process.sys$exit_thread(arg1, arg2, arg3);
|
||||
break;
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue