mirror of
https://github.com/gperftools/gperftools
synced 2025-02-26 17:10:24 +00:00
mmap_hook_test: don't printf early
The test includes override of MallocHook_InitAtFirstAllocation_HeapLeakChecker which runs early enough to trigger FreeBSD bug of not having nearly anything working early.
This commit is contained in:
parent
e7f576d9f1
commit
45a4ad8b70
@ -49,7 +49,10 @@
|
||||
#include <string.h>
|
||||
|
||||
extern "C" int MallocHook_InitAtFirstAllocation_HeapLeakChecker() {
|
||||
printf("first mmap!\n");
|
||||
// Effing, FreeBSD. Super-annoying with broken everything when it is
|
||||
// early.
|
||||
static char msg[] = "first mmap!\n";
|
||||
WRITE_TO_STDERR(msg, sizeof(msg) - 1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user