diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2021-11-06 12:49:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-11 09:20:35 +0100 |
commit | 2158e1a6b93241594fbda8e4be244228027f59cd (patch) | |
tree | 7bd19e2d953d3076dd7469e080d0327738322625 /Userland/Libraries/LibC/sys | |
parent | 2801323236066a823cd698513c02f079a021f472 (diff) | |
download | serenity-2158e1a6b93241594fbda8e4be244228027f59cd.zip |
LibC: Avoid unnecessary mprotect during program initialization
For 'true', this shaves off about 69 syscalls, as measured by strace.
Diffstat (limited to 'Userland/Libraries/LibC/sys')
-rw-r--r-- | Userland/Libraries/LibC/sys/internals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/sys/internals.h b/Userland/Libraries/LibC/sys/internals.h index b18115a377..4a275b2801 100644 --- a/Userland/Libraries/LibC/sys/internals.h +++ b/Userland/Libraries/LibC/sys/internals.h @@ -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; |