diff --git a/vendor/CMakeLists.txt b/vendor/CMakeLists.txt index 5cbf316..9afbb55 100644 --- a/vendor/CMakeLists.txt +++ b/vendor/CMakeLists.txt @@ -101,7 +101,7 @@ ExternalProject_Add(ratelimiter PREFIX ratelimiter CONFIGURE_COMMAND "" BUILD_COMMAND make BUILD_IN_SOURCE 1) - + ExternalProject_Get_Property(ratelimiter INSTALL_DIR) file(MAKE_DIRECTORY ${INSTALL_DIR}/include) @@ -334,8 +334,9 @@ target_link_libraries(brotlienc-static INTERFACE brotlicommon-static) ### gperftools ExternalProject_Add(gperftools PREFIX gperftools - URL ${CMAKE_CURRENT_SOURCE_DIR}/gperftools-2.7.tar.gz - URL_MD5 c6a852a817e9160c79bdb2d3101b4601 + URL ${CMAKE_CURRENT_SOURCE_DIR}/gperftools-2.8.tar.gz + URL_MD5 ea61ad1e886f53e4069873ce52cae7df + PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/patch/gperftools-fix_too_small_heap_profile_buffer_size.patch CONFIGURE_COMMAND ./configure --prefix= --disable-shared BUILD_IN_SOURCE 1) diff --git a/vendor/gperftools-2.7.tar.gz b/vendor/gperftools-2.7.tar.gz deleted file mode 100644 index e0a82a2..0000000 Binary files a/vendor/gperftools-2.7.tar.gz and /dev/null differ diff --git a/vendor/gperftools-2.8.tar.gz b/vendor/gperftools-2.8.tar.gz new file mode 100644 index 0000000..edda2b0 Binary files /dev/null and b/vendor/gperftools-2.8.tar.gz differ diff --git a/vendor/patch/gperftools-fix_too_small_heap_profile_buffer_size.patch b/vendor/patch/gperftools-fix_too_small_heap_profile_buffer_size.patch new file mode 100644 index 0000000..356e557 --- /dev/null +++ b/vendor/patch/gperftools-fix_too_small_heap_profile_buffer_size.patch @@ -0,0 +1,13 @@ +diff --git a/src/heap-profiler.cc b/src/heap-profiler.cc +index 33a25ac..4d750bb 100644 +--- a/src/heap-profiler.cc ++++ b/src/heap-profiler.cc +@@ -151,7 +151,7 @@ static void ProfilerFree(void* p) { + } + + // We use buffers of this size in DoGetHeapProfile. +-static const int kProfileBufferSize = 1 << 20; ++static const int kProfileBufferSize = 1 << 22; + + // This is a last-ditch buffer we use in DumpProfileLocked in case we + // can't allocate more memory from ProfilerMalloc. We expect this