From 2934cf40529e0261801a4142fabae449a65effd0 Mon Sep 17 00:00:00 2001 From: Stephen Chen Date: Tue, 20 Jun 2017 09:48:55 -0700 Subject: [PATCH] aarch64: reduce UNW_TDEP_CURSOR_LEN to 512 on aarch64. This allows libunwind to work in situations with limited stack size (ie. fibers). 512 is still more than enough for storing the cursor with some slack. (#25) --- include/libunwind-aarch64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libunwind-aarch64.h b/include/libunwind-aarch64.h index fe9e83d7..85812e15 100644 --- a/include/libunwind-aarch64.h +++ b/include/libunwind-aarch64.h @@ -46,7 +46,7 @@ extern "C" { relatively cheap and unwind-state copying is relatively rare, so we want to err on making it rather too big than too small. */ -#define UNW_TDEP_CURSOR_LEN 4096 +#define UNW_TDEP_CURSOR_LEN 512 typedef uint64_t unw_word_t; typedef int64_t unw_sword_t;