Skip to content

Commit

Permalink
3
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed Apr 18, 2024
1 parent 5a7e18d commit 96c2355
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions be/src/runtime/thread_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@
#define SCOPED_CONSUME_MEM_TRACKER_BY_HOOK(mem_tracker) \
auto VARNAME_LINENUM(add_mem_consumer) = doris::AddThreadMemTrackerConsumerByHook(mem_tracker)

#define ORPHAN_TRACKER_CHECK() \
DCHECK(!doris::ExecEnv::ready() || !doris::config::enable_memory_orphan_check || \
doris::thread_context()->thread_mem_tracker()->label() != "Orphan") \
#define ORPHAN_TRACKER_CHECK() \
DCHECK(k_doris_exit || !doris::config::enable_memory_orphan_check || \
doris::thread_context()->thread_mem_tracker()->label() != "Orphan") \
<< doris::memory_orphan_check_msg

#define MEMORY_ORPHAN_CHECK() \
DCHECK(!doris::ExecEnv::ready() || !doris::config::enable_memory_orphan_check) \
#define MEMORY_ORPHAN_CHECK() \
DCHECK(k_doris_exit || !doris::config::enable_memory_orphan_check) \
<< doris::memory_orphan_check_msg;
#else
#define SCOPED_MEM_COUNT_BY_HOOK(scope_mem) (void)0
Expand Down Expand Up @@ -201,7 +201,7 @@ class ThreadContext {

void consume_memory(const int64_t size) const {
#ifdef USE_MEM_TRACKER
DCHECK(!doris::ExecEnv::ready() || !doris::config::enable_memory_orphan_check ||
DCHECK(k_doris_exit || !doris::config::enable_memory_orphan_check ||
thread_mem_tracker()->label() != "Orphan")
<< doris::memory_orphan_check_msg;
#endif
Expand Down

0 comments on commit 96c2355

Please sign in to comment.