From 41e460ffd9f5210ef9edbc221a84e88473e00d3a Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Tue, 30 Apr 2024 18:13:30 +0800 Subject: [PATCH] feat update default fiber stack=4 m --- 3party/marl/include/marl/scheduler.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/3party/marl/include/marl/scheduler.h b/3party/marl/include/marl/scheduler.h index 9e133f2..9450b26 100644 --- a/3party/marl/include/marl/scheduler.h +++ b/3party/marl/include/marl/scheduler.h @@ -54,7 +54,7 @@ class Scheduler { // Config holds scheduler configuration settings that can be passed to the // Scheduler constructor. struct Config { - static constexpr size_t DefaultFiberStackSize = 1024 * 1024; + static constexpr size_t DefaultFiberStackSize = 4 * 1024 * 1024; // Per-worker-thread settings. struct WorkerThread { @@ -417,10 +417,11 @@ class Scheduler { // spinForWork(). void waitForWork() REQUIRES(work.mutex); - // spinForWorkAndLock() attempts to steal work from another Worker, and keeps - // the thread awake for a short duration. This reduces overheads of + // spinForWorkAndLock() attempts to steal work from another Worker, and + // keeps the thread awake for a short duration. This reduces overheads of // frequently putting the thread to sleep and re-waking. It locks the mutex - // before returning so that a stolen task cannot be re-stolen by other workers. + // before returning so that a stolen task cannot be re-stolen by other + // workers. void spinForWorkAndLock() ACQUIRE(work.mutex); // enqueueFiberTimeouts() enqueues all the fibers that have finished