Skip to content

Commit

Permalink
Initialize default MemoryManager in VeloxIn10MinDemo (#8580)
Browse files Browse the repository at this point in the history
Summary:
Fixes #8483

Pull Request resolved: #8580

Reviewed By: bikramSingh91

Differential Revision: D53169491

Pulled By: xiaoxmeng

fbshipit-source-id: e25ba1711967313e89b128341f73e077cadd03da
  • Loading branch information
lingbin authored and facebook-github-bot committed Jan 29, 2024
1 parent 4b3b9bc commit 442cf99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions velox/exec/tests/VeloxIn10MinDemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/
#include <folly/init/Init.h>
#include "velox/common/memory/Memory.h"
#include "velox/connectors/tpch/TpchConnector.h"
#include "velox/connectors/tpch/TpchConnectorSplit.h"
#include "velox/core/Expressions.h"
Expand Down Expand Up @@ -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();
}

0 comments on commit 442cf99

Please sign in to comment.