1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:37:34 +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

@ -15,6 +15,7 @@ typedef void (*AtExitFunction)(void*);
extern void __libc_init();
extern void __malloc_init();
extern void __stdio_init();
extern void __begin_atexit_locking();
extern void _init();
extern bool __environ_is_malloced;
extern bool __stdio_is_initialized;