stop linking malloc_hooks to low_level_alloc

This commit is contained in:
Aliaksei Kandratsenka 2024-10-03 16:32:13 -04:00
parent 2e1799aa78
commit 3c261d9090
4 changed files with 0 additions and 7 deletions

View File

@ -475,7 +475,6 @@ if(BUILD_TESTING)
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/vendor/googletest/googletest/include>)
add_executable(low_level_alloc_unittest src/base/low_level_alloc.cc
src/malloc_hook.cc
src/tests/low_level_alloc_unittest.cc)
target_compile_definitions(low_level_alloc_unittest PRIVATE NO_TCMALLOC_SAMPLES PERFTOOLS_DLL_DECL= )
target_link_libraries(low_level_alloc_unittest common gtest)

View File

@ -187,7 +187,6 @@ proc_maps_iterator_test_LDADD = libcommon.la libgtest.la
if WITH_HEAP_PROFILER_OR_CHECKER
TESTS += low_level_alloc_unittest
low_level_alloc_unittest_SOURCES = src/base/low_level_alloc.cc \
src/malloc_hook.cc \
src/tests/low_level_alloc_unittest.cc
# By default, MallocHook takes stack traces for use by the heap-checker.
# We don't need that functionality here, so we turn it off to reduce deps.

View File

@ -42,10 +42,6 @@
#include "base/spinlock.h"
#include "base/static_storage.h"
// FIXME (need hooks?)
#include "malloc_hook-inl.h"
#include <gperftools/malloc_hook.h>
#include "memmap.h"
// A first-fit allocator with amortized logarithmic free() time.

View File

@ -36,7 +36,6 @@
#include <stdio.h>
#include <map>
#include <gperftools/malloc_hook.h>
#include "gtest/gtest.h"
// a block of memory obtained from the allocator