RFR: 8263476: Use reserved memory for stack guard pages [v3]

Albert Mingkun Yang ayang at openjdk.org
Wed Aug 6 20:31:14 UTC 2025


On Wed, 6 Aug 2025 14:30:08 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> Current create_stack_guard_pages() implementation calls os::commit_memory(addr, size, !ExecMem) to setup the protection.

Which `create_stack_guard_pages` are you referring to, in `StackOverflow` or `os`?

`StackOverflow::create_stack_guard_pages` invokes `os::create_stack_guard_pages` for some preparation work (optional for some platforms) and `os::guard_memory` for protection setup.

`os::commit_memory` is not directly related to memory protection.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/26571#discussion_r2258222637


More information about the hotspot-runtime-dev mailing list