Skip to content

Commit

Permalink
Reduce scheduler fiber stack size for tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ben-clayton committed Sep 11, 2020
1 parent bc65ef5 commit 5f89731
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/marl_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class WithBoundScheduler : public testing::TestWithParam<SchedulerParams> {
marl::Scheduler::Config cfg;
cfg.setAllocator(allocator);
cfg.setWorkerThreadCount(params.numWorkerThreads);
cfg.setFiberStackSize(0x10000);

auto scheduler = new marl::Scheduler(cfg);
scheduler->bind();
Expand Down

0 comments on commit 5f89731

Please sign in to comment.