mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-07-15 08:48:33 +00:00
core/shared/platform/common/posix: remove an extra guard page
Fixes: https://github.com/bytecodealliance/wasm-micro-runtime/issues/3144
This commit is contained in:
parent
8639cbacff
commit
2599759096
|
@ -445,9 +445,6 @@ os_thread_get_stack_boundary()
|
|||
pthread_attr_destroy(&attr);
|
||||
if (stack_size > max_stack_size)
|
||||
addr = addr + stack_size - max_stack_size;
|
||||
if (guard_size < (size_t)page_size)
|
||||
/* Reserved 1 guard page at least for safety */
|
||||
guard_size = (size_t)page_size;
|
||||
addr += guard_size;
|
||||
}
|
||||
(void)stack_size;
|
||||
|
@ -466,8 +463,6 @@ os_thread_get_stack_boundary()
|
|||
stack_size = max_stack_size;
|
||||
|
||||
addr -= stack_size;
|
||||
/* Reserved 1 guard page at least for safety */
|
||||
addr += page_size;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user