Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Doris-Extras authored and yiguolei committed Aug 31, 2024
1 parent 352be29 commit 0bc9aa5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions be/src/vec/common/allocator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ void Allocator<clear_memory_, mmap_populate, use_mmap, MemoryAllocator>::sys_mem
}
}

// Find large memory allocation not catch exception
if (size > 990000 && !doris::enable_thread_catch_bad_alloc) {
LOG(INFO) << "There is a large allocation " << size << ", not catch exception. "
<< doris::get_stack_trace();
}

if (doris::GlobalMemoryArbitrator::is_exceed_hard_mem_limit(size)) {
// Only thread attach query, and has not completely waited for thread_wait_gc_max_milliseconds,
// will wait for gc, asynchronous cancel or throw bad::alloc.
Expand Down

0 comments on commit 0bc9aa5

Please sign in to comment.