From 5f897319c18fa5f09fea23097f3b4e5e249fbea3 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Fri, 11 Sep 2020 14:05:07 +0100 Subject: [PATCH] Reduce scheduler fiber stack size for tests Use the new fiber stack size option to reduce the amount of stack size allocated for each fiber. The tests do not need a whole meg's worth of stack per fiber, and some of the 32-bit tests can exceed the amount of free memory avaliable. --- src/marl_test.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/marl_test.h b/src/marl_test.h index 5c71868..3ca66d3 100644 --- a/src/marl_test.h +++ b/src/marl_test.h @@ -57,6 +57,7 @@ class WithBoundScheduler : public testing::TestWithParam { marl::Scheduler::Config cfg; cfg.setAllocator(allocator); cfg.setWorkerThreadCount(params.numWorkerThreads); + cfg.setFiberStackSize(0x10000); auto scheduler = new marl::Scheduler(cfg); scheduler->bind();