Skip to content

Commit 5522080

Browse files
committed
disable stack overflow check for WASI
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent 9c06bbf commit 5522080

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Include/internal/pycore_pystate.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ static uintptr_t return_pointer_as_int(char* p) {
309309

310310
static inline uintptr_t
311311
_Py_get_machine_stack_pointer(void) {
312-
#if _Py__has_builtin(__builtin_frame_address) || defined(__GNUC__)
312+
#if defined(__wasi__)
313+
return UINTPTR_MAX;
314+
#elif _Py__has_builtin(__builtin_frame_address) || defined(__GNUC__)
313315
return (uintptr_t)__builtin_frame_address(0);
314316
#elif defined(_MSC_VER)
315317
return (uintptr_t)_AddressOfReturnAddress();

0 commit comments

Comments
 (0)