1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:07:36 +00:00

LibC: Avoid unnecessary mprotect during program initialization

For 'true', this shaves off about 69 syscalls, as measured by strace.
This commit is contained in:
Ben Wiederhake 2021-11-06 12:49:26 +01:00 committed by Andreas Kling
parent 2801323236
commit 2158e1a6b9
3 changed files with 15 additions and 3 deletions

View file

@ -39,6 +39,7 @@ int _entry(int argc, char** argv, char** env)
environ = env;
__environ_is_malloced = false;
__begin_atexit_locking();
_init();