diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-31 20:55:46 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-31 20:56:48 +0200 |
commit | 044b4cc09066466d5a7c1455116a2c7644d17965 (patch) | |
tree | 8e84fed496bc2d0d6eff59be4ffc4692ddd67b91 /Libraries/LibC | |
parent | c7e4c0734b82054cb169610ba1e2155ffc92e215 (diff) | |
download | serenity-044b4cc09066466d5a7c1455116a2c7644d17965.zip |
LibC: Flatten malloc() and free()
This allows UE to ignore the full range of these functions instead of
just the malloc() and free() bodies.
Diffstat (limited to 'Libraries/LibC')
-rw-r--r-- | Libraries/LibC/malloc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibC/malloc.cpp b/Libraries/LibC/malloc.cpp index 2ddcd7a9ab..8d126b5b81 100644 --- a/Libraries/LibC/malloc.cpp +++ b/Libraries/LibC/malloc.cpp @@ -385,7 +385,7 @@ static void free_impl(void* ptr) } } -void* malloc(size_t size) +[[gnu::flatten]] void* malloc(size_t size) { void* ptr = malloc_impl(size); if (s_profiling) @@ -393,7 +393,7 @@ void* malloc(size_t size) return ptr; } -void free(void* ptr) +[[gnu::flatten]] void free(void* ptr) { if (s_profiling) perf_event(PERF_EVENT_FREE, reinterpret_cast<FlatPtr>(ptr), 0); |