From 496354f1c983edd3ecf7b2dda1d66b5cec7f861e Mon Sep 17 00:00:00 2001 From: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> Date: Thu, 12 Feb 2026 16:38:57 +0000 Subject: [PATCH] increase stack size of coroutine Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> --- include/xrpl/core/Coro.ipp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/include/xrpl/core/Coro.ipp b/include/xrpl/core/Coro.ipp index b397fcd65c..36b1ce9a71 100644 --- a/include/xrpl/core/Coro.ipp +++ b/include/xrpl/core/Coro.ipp @@ -8,14 +8,16 @@ JobQueue::Coro::Coro(Coro_create_t, JobQueue& jq, JobType type, std::string cons , type_(type) , name_(name) , running_(false) - , coro_([this, fn = std::forward(f)](boost::coroutines2::coroutine::push_type& do_yield) { - yield_ = &do_yield; - yield(); - fn(shared_from_this()); + , coro_( + boost::context::fixedsize_stack(4 * 1024 * 1024), + [this, fn = std::forward(f)](boost::coroutines2::coroutine::push_type& do_yield) { + yield_ = &do_yield; + yield(); + fn(shared_from_this()); #ifndef NDEBUG - finished_ = true; + finished_ = true; #endif - }) + }) { }