Skip to content

Commit 9db46c6

Browse files
Orri Erlingfacebook-github-bot
authored andcommitted
Fix init of HashTableBenchmark (#6771)
Summary: Must initialize memory manager if setting allocator. Pull Request resolved: #6771 Reviewed By: Yuhta Differential Revision: D49689621 Pulled By: oerling fbshipit-source-id: 7d695aef07a8a6e342843e8a62f268b36a00ccfe
1 parent 9f9fb19 commit 9db46c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

velox/exec/benchmarks/HashTableBenchmark.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,10 @@ int main(int argc, char** argv) {
619619

620620
auto allocator = std::make_shared<memory::MmapAllocator>(options);
621621
memory::MemoryAllocator::setDefaultInstance(allocator.get());
622+
memory::MemoryManager::getInstance(memory::MemoryManagerOptions{
623+
.capacity = static_cast<int64_t>(options.capacity),
624+
.allocator = allocator.get()});
625+
622626
auto bm = std::make_unique<HashTableBenchmark>();
623627
std::vector<HashTableBenchmarkRun> results;
624628

0 commit comments

Comments
 (0)