Explorar o código

LibC: Don't flatten `malloc` and `free`

This is no longer needed as per the previous commit, UserspaceEmulator's
malloc tracer now correctly handles functions called from within
`malloc` and `free`. This might also have a benefit on performance
because forcibly inlining all function calls pessimizes cache locality.
Daniel Bertalan %!s(int64=4) %!d(string=hai) anos
pai
achega
fbdf17ae68
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Userland/Libraries/LibC/malloc.cpp

+ 2 - 2
Userland/Libraries/LibC/malloc.cpp

@@ -410,7 +410,7 @@ static void free_impl(void* ptr)
     }
 }
 
-[[gnu::flatten]] void* malloc(size_t size)
+void* malloc(size_t size)
 {
     MemoryAuditingSuppressor suppressor;
     void* ptr = malloc_impl(size, CallerWillInitializeMemory::No);
@@ -419,7 +419,7 @@ static void free_impl(void* ptr)
     return ptr;
 }
 
-[[gnu::flatten]] void free(void* ptr)
+void free(void* ptr)
 {
     MemoryAuditingSuppressor suppressor;
     if (s_profiling)