enable memleak with light_backtrace online
This commit is contained in:
parent
317ca7bb41
commit
28cc126c6c
@ -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)
|
||||
|
2
deps/oblib/src/lib/alloc/alloc_struct.cpp
vendored
2
deps/oblib/src/lib/alloc/alloc_struct.cpp
vendored
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user