RFR: 8263476: NMT: Stack guard pages should not be marked as committed [v2]
Albert Mingkun Yang
ayang at openjdk.org
Mon Aug 4 13:19:14 UTC 2025
> Use reserved (instead of committed) memory for stack-guard-pages on linux like systems.
>
> `os::must_commit_stack_guard_pages` uses `commit` in its name, but `commit` usually has specific meanings in OS memory context. The actual question the caller is asking is whether the caller needs to do some preparation work before marking the guard-pages as inaccessible. To avoid confusion, I changed it to "allocate". Other suggestions are welcome.
>
> Test: tier1-3
Albert Mingkun Yang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
- review
- Merge branch 'master' into no-commit-stack-guard-page
- no-commit-stack-guard-page
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26571/files
- new: https://git.openjdk.org/jdk/pull/26571/files/82d02eb4..0061fcb9
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26571&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26571&range=00-01
Stats: 8072 lines in 198 files changed: 5800 ins; 1740 del; 532 mod
Patch: https://git.openjdk.org/jdk/pull/26571.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26571/head:pull/26571
PR: https://git.openjdk.org/jdk/pull/26571
More information about the hotspot-runtime-dev
mailing list