xinyiZzz commented on code in PR #21755: URL: https://github.com/apache/doris/pull/21755#discussion_r1264288884
########## be/src/vec/common/allocator.h: ########## @@ -69,6 +70,8 @@ static constexpr size_t MALLOC_MIN_ALIGNMENT = 8; // is always a multiple of sixteen. (https://www.gnu.org/software/libc/manual/html_node/Aligned-Memory-Blocks.html) static constexpr int ALLOCATOR_ALIGNMENT_16 = 16; +inline thread_local bool in_allocator = false; Review Comment: 我先放到 thread context 里,那里处理了bthread切换 ########## be/src/vec/common/allocator.h: ########## @@ -69,6 +70,8 @@ static constexpr size_t MALLOC_MIN_ALIGNMENT = 8; // is always a multiple of sixteen. (https://www.gnu.org/software/libc/manual/html_node/Aligned-Memory-Blocks.html) static constexpr int ALLOCATOR_ALIGNMENT_16 = 16; +inline thread_local bool in_allocator = false; Review Comment: 我先放到 thread context 里,那里处理了bthread切换 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org