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:
parent
2801323236
commit
2158e1a6b9
3 changed files with 15 additions and 3 deletions
|
@ -39,6 +39,7 @@ int _entry(int argc, char** argv, char** env)
|
|||
|
||||
environ = env;
|
||||
__environ_is_malloced = false;
|
||||
__begin_atexit_locking();
|
||||
|
||||
_init();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue