Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/shared/platform/common/posix/posix_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,13 @@ os_thread_signal_init(os_signal_handler handler)
#if WASM_DISABLE_STACK_HW_BOUND_CHECK == 0
sigalt_stack_base_addr = map_addr;
#endif

#if defined(os_thread_local_attribute)
// calculate and cache the new stack boundary.
// see https://github.com/bytecodealliance/wasm-micro-runtime/issues/3966
(void)os_thread_get_stack_boundary();
#endif

signal_handler = handler;
thread_signal_inited = true;
return 0;
Expand Down
Loading