[tarantool-patches] [PATCH v3 1/4] fiber: do not inline coro unwind function

Georgy Kirichenko georgy at tarantool.org
Wed Oct 31 13:49:10 MSK 2018


Do not inline coro_unwcontext because the unwind handler expects
for a separate stack frame.
---
 src/backtrace.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backtrace.cc b/src/backtrace.cc
index 2512bc045..d6be97621 100644
--- a/src/backtrace.cc
+++ b/src/backtrace.cc
@@ -210,7 +210,7 @@ unw_getcontext_f(unw_context_t *unw_context, void *stack)
  * @param @unw_context unwind context to store execution state.
  * @param @coro_ctx fiber context to unwind.
  */
-static void
+static void NOINLINE
 coro_unwcontext(unw_context_t *unw_context, struct coro_context *coro_ctx)
 {
 #if __amd64
-- 
2.19.1





More information about the Tarantool-patches mailing list