@@ -1506,7 +1506,7 @@ class FastMallocZone {
15061506};
15071507
15081508// This method declaration, and the constants below, are taken from Libc/gen/malloc.c.
1509- extern " C" void (*malloc_logger)(uint32_t typeFlags, uintptr_t zone, uintptr_t size, uintptr_t pointer, uintptr_t returnValue, uint32_t numberOfFramesToSkip);
1509+ // extern "C" void (*malloc_logger)(uint32_t typeFlags, uintptr_t zone, uintptr_t size, uintptr_t pointer, uintptr_t returnValue, uint32_t numberOfFramesToSkip);
15101510
15111511#endif
15121512
@@ -1522,7 +1522,13 @@ class MallocHook {
15221522
15231523 static void record (uint32_t typeFlags, uintptr_t zone, uintptr_t size, void * pointer, void * returnValue, uint32_t numberOfFramesToSkip)
15241524 {
1525- malloc_logger (typeFlags, zone, size, reinterpret_cast <uintptr_t >(pointer), reinterpret_cast <uintptr_t >(returnValue), numberOfFramesToSkip);
1525+ #pragma unused (typeFlags)
1526+ #pragma unused (zone)
1527+ #pragma unused (size)
1528+ #pragma unused (pointer)
1529+ #pragma unused (returnValue)
1530+ #pragma unused (numberOfFramesToSkip)
1531+ // malloc_logger(typeFlags, zone, size, reinterpret_cast<uintptr_t>(pointer), reinterpret_cast<uintptr_t>(returnValue), numberOfFramesToSkip);
15261532 }
15271533
15281534 static NEVER_INLINE void recordAllocation (void * pointer, size_t size)
@@ -1545,7 +1551,7 @@ class MallocHook {
15451551 {
15461552#if OS(DARWIN)
15471553 // If the system allocator's malloc_logger has been set up then stack logging is enabled.
1548- stackLoggingEnabled = malloc_logger;
1554+ // stackLoggingEnabled = malloc_logger;
15491555#endif
15501556 }
15511557
0 commit comments