dataroaring commented on code in PR #10446:
URL: https://github.com/apache/doris/pull/10446#discussion_r907286437


##########
be/src/exprs/block_bloom_filter_impl.cc:
##########
@@ -69,8 +72,12 @@ Status BlockBloomFilter::init_internal(const int 
log_space_bytes, uint32_t hash_
 
     const size_t alloc_size = directory_size();
     close(); // Ensure that any previously allocated memory for directory_ is 
released.
-    _mem_holder.reset(new char[alloc_size]);
-    _directory = (Bucket*)_mem_holder.get();
+    DCHECK(_directory == nullptr);
+    int rc = posix_memalign((void**)&_directory, 32, alloc_size);

Review Comment:
   The patch fixes the problem when using jemalloc, does not enable jemalloc.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to