yiguolei commented on code in PR #11740: URL: https://github.com/apache/doris/pull/11740#discussion_r944376360
########## be/src/runtime/memory/chunk_allocator.cpp: ########## @@ -147,7 +147,7 @@ ChunkAllocator::ChunkAllocator(size_t reserve_limit) } Status ChunkAllocator::allocate(size_t size, Chunk* chunk) { - DCHECK(BitUtil::RoundUpToPowerOfTwo(size) == size); + DCHECK((size & (size - 1)) == 0); Review Comment: CHECK here, not use DCHECK. -- 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