From 6de797b98dda81c0eae2855fdbdda26e5cdc69aa Mon Sep 17 00:00:00 2001 From: Xiduo You Date: Wed, 20 Dec 2023 15:44:58 +0800 Subject: [PATCH] [GLUTEN-4106][VL] Initialize velox global memory manager (#4111) --- cpp/velox/compute/VeloxBackend.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpp/velox/compute/VeloxBackend.cc b/cpp/velox/compute/VeloxBackend.cc index 70a69ee478d0..a27563f5a877 100644 --- a/cpp/velox/compute/VeloxBackend.cc +++ b/cpp/velox/compute/VeloxBackend.cc @@ -194,6 +194,9 @@ void VeloxBackend::init(const std::unordered_map& conf initUdf(veloxcfg); registerSparkTokenizer(); + + // initialize the global memory manager for current process + facebook::velox::memory::MemoryManager::initialize({}); } facebook::velox::cache::AsyncDataCache* VeloxBackend::getAsyncDataCache() const {