diff --git a/util/dynamic_bloom.cc b/util/dynamic_bloom.cc index 5d3d30f4e..a4c8e11cb 100644 --- a/util/dynamic_bloom.cc +++ b/util/dynamic_bloom.cc @@ -39,7 +39,7 @@ DynamicBloom::DynamicBloom(uint32_t total_bits, sz += CACHE_LINE_SIZE - 1; } raw_ = new unsigned char[sz](); - if (kBlocked) { + if (kBlocked && (reinterpret_cast(raw_) % CACHE_LINE_SIZE)) { data_ = raw_ + CACHE_LINE_SIZE - reinterpret_cast(raw_) % CACHE_LINE_SIZE; } else {