From 442cf99e608aceae2c238f77baf3913797e4bcf7 Mon Sep 17 00:00:00 2001 From: lingbin Date: Mon, 29 Jan 2024 11:25:20 -0800 Subject: [PATCH] Initialize default MemoryManager in VeloxIn10MinDemo (#8580) Summary: Fixes https://github.com/facebookincubator/velox/issues/8483 Pull Request resolved: https://github.com/facebookincubator/velox/pull/8580 Reviewed By: bikramSingh91 Differential Revision: D53169491 Pulled By: xiaoxmeng fbshipit-source-id: e25ba1711967313e89b128341f73e077cadd03da --- velox/exec/tests/VeloxIn10MinDemo.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/velox/exec/tests/VeloxIn10MinDemo.cpp b/velox/exec/tests/VeloxIn10MinDemo.cpp index d38122fd8972..df5768d1a1b9 100644 --- a/velox/exec/tests/VeloxIn10MinDemo.cpp +++ b/velox/exec/tests/VeloxIn10MinDemo.cpp @@ -14,6 +14,7 @@ * limitations under the License. */ #include +#include "velox/common/memory/Memory.h" #include "velox/connectors/tpch/TpchConnector.h" #include "velox/connectors/tpch/TpchConnectorSplit.h" #include "velox/core/Expressions.h" @@ -293,6 +294,9 @@ void VeloxIn10MinDemo::run() { int main(int argc, char** argv) { folly::init(&argc, &argv, false); + // Initializes the process-wide memory-manager with the default options. + memory::initializeMemoryManager({}); + VeloxIn10MinDemo demo; demo.run(); }