diff options
author | Yuta Saito <[email protected]> | 2022-09-04 14:34:24 +0000 |
---|---|---|
committer | Yuta Saito <[email protected]> | 2023-05-16 03:52:59 +0900 |
commit | 8945143464de77ca43eba000f77c5d04a1cdabb8 (patch) | |
tree | c37218b4dd1b8b422d1be60fe7a19156e1f16921 /wasm/setjmp.h | |
parent | ab7bb38aca0d2b5c2b81142a8e67fbff0f1a4a8a (diff) |
[wasm] Allocate asyncify buffer on heap to save stack usage
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7818
Diffstat (limited to 'wasm/setjmp.h')
-rw-r--r-- | wasm/setjmp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wasm/setjmp.h b/wasm/setjmp.h index 65e35c03b3..cc14df33be 100644 --- a/wasm/setjmp.h +++ b/wasm/setjmp.h @@ -19,7 +19,7 @@ typedef struct { struct __rb_wasm_asyncify_jmp_buf setjmp_buf; // Internal Asyncify buffer space used while unwinding from longjmp // but never used for rewinding. - struct __rb_wasm_asyncify_jmp_buf longjmp_buf; + struct __rb_wasm_asyncify_jmp_buf *longjmp_buf_ptr; // Used to save top address of Asyncify stack `setjmp_buf`, which is // overwritten during first rewind. void *dst_buf_top; |