From 3a68b65fe84395dcb37559ae1f35a073796421fe Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 5 Apr 2019 15:56:05 -0700 Subject: [PATCH] ircd::ctx: Optimize with no_stack_unwind attribute since it's done by us. --- ircd/ctx.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ircd/ctx.cc b/ircd/ctx.cc index dd3e1899e..a214e6e81 100644 --- a/ircd/ctx.cc +++ b/ircd/ctx.cc @@ -62,8 +62,11 @@ ircd::ctx::spawn(ctx *const c, { const boost::coroutines::attributes attrs { + // Pass the requested stack size c->stack.max, - boost::coroutines::stack_unwind + + // We ensure stack unwinding and cleanup out here instead. + boost::coroutines::no_stack_unwind, }; auto bound