enable memleak with light_backtrace online

This commit is contained in:
tushicheng 2024-06-17 13:23:25 +00:00 committed by ob-robot
parent 317ca7bb41
commit 28cc126c6c
2 changed files with 1 additions and 3 deletions

View File

@ -93,8 +93,6 @@ if (ENABLE_FATAL_ERROR_HANG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DFATAL_ERROR_HANG")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_500_MEMORY_LIMIT")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_500_MEMORY_LIMIT")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_LIGHT_BACKTRACE")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_LIGHT_BACKTRACE")
endif()
if(OB_USE_ASAN)

View File

@ -137,7 +137,7 @@ bool is_ob_mem_mgr_path()
void enable_memleak_light_backtrace(const bool enable)
{
#if defined(ENABLE_LIGHT_BACKTRACE)
#if defined(__x86_64__) || defined(__aarch64__)
g_memleak_light_backtrace_enabled = enable;
#else
UNUSED(enable);