Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Commit bcd029c

Browse files
committed
Comment out private function malloc_logger for AppStore compatability
1 parent 099288a commit bcd029c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

WTF/wtf/FastMalloc.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)