diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f62b47..56b068a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -475,7 +475,6 @@ if(BUILD_TESTING) $) 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) diff --git a/Makefile.am b/Makefile.am index 2fab17c..60d0efd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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. diff --git a/src/base/low_level_alloc.cc b/src/base/low_level_alloc.cc index 90553e9..fda4fcd 100644 --- a/src/base/low_level_alloc.cc +++ b/src/base/low_level_alloc.cc @@ -42,10 +42,6 @@ #include "base/spinlock.h" #include "base/static_storage.h" -// FIXME (need hooks?) -#include "malloc_hook-inl.h" -#include - #include "memmap.h" // A first-fit allocator with amortized logarithmic free() time. diff --git a/src/tests/low_level_alloc_unittest.cc b/src/tests/low_level_alloc_unittest.cc index 4eee06d..bfcc914 100644 --- a/src/tests/low_level_alloc_unittest.cc +++ b/src/tests/low_level_alloc_unittest.cc @@ -36,7 +36,6 @@ #include #include -#include #include "gtest/gtest.h" // a block of memory obtained from the allocator