Skip to content

Commit 669ce7c

Browse files
committed
Enable jemalloc heap profiler by default for debug builds as well
Since the issue with jemalloc assertion is clear, let's revert that workaround Signed-off-by: Azat Khuzhin <[email protected]>
1 parent 2261178 commit 669ce7c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

contrib/jemalloc-cmake/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ if (OS_LINUX)
3434
# avoid spurious latencies and additional work associated with
3535
# MADV_DONTNEED. See
3636
# https://github.com/ClickHouse/ClickHouse/issues/11121 for motivation.
37-
if (CMAKE_BUILD_TYPE_UC STREQUAL "DEBUG")
38-
set (JEMALLOC_CONFIG_MALLOC_CONF "percpu_arena:percpu,oversize_threshold:0,muzzy_decay_ms:0,dirty_decay_ms:5000")
39-
else()
40-
set (JEMALLOC_CONFIG_MALLOC_CONF "percpu_arena:percpu,oversize_threshold:0,muzzy_decay_ms:0,dirty_decay_ms:5000,prof:true,prof_active:false,background_thread:true")
41-
endif()
37+
set (JEMALLOC_CONFIG_MALLOC_CONF "percpu_arena:percpu,oversize_threshold:0,muzzy_decay_ms:0,dirty_decay_ms:5000,prof:true,prof_active:false,background_thread:true")
4238
else()
4339
set (JEMALLOC_CONFIG_MALLOC_CONF "oversize_threshold:0,muzzy_decay_ms:0,dirty_decay_ms:5000")
4440
endif()

0 commit comments

Comments
 (0)