yiguolei commented on code in PR #21755: URL: https://github.com/apache/doris/pull/21755#discussion_r1264263131
########## 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: 不能使用这种变量,因为我们不知道是否再bthread 里,比如exchange sink operator 那里。 ########## 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: 不能使用这种变量,因为我们不知道是否再bthread 里,比如exchange sink operator 那里。 -- 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