RFR: 8329748: Change default value of AssertWXAtThreadSync to true

Dean Long dlong at openjdk.org
Thu May 9 02:38:51 UTC 2024


On Mon, 6 May 2024 11:10:08 GMT, Tobias Holenstein <tholenstein at openjdk.org> wrote:

> The debug flag `-XX:+AssertWXAtThreadSync` conservatively  checks for correct W^X thread state at possible safepoints or handshake. The flag is useful to detect missing `MACOS_AARCH64_ONLY(ThreadWXEnable __wx(WXWrite, thread));`. Since the check is cheap and it is a `AARCH64_ONLY(develop(..))` only flag it makes sense to enable the flag by default. 
> 
> There was one missing `MACOS_AARCH64_ONLY(ThreadWXEnable __wx(WXWrite, thread));` to make all tests (tier1-7) pass.

FWIW, I decided to look into WXExec as default (JDK-8328306), and in my draft so far I have removedAssertWXAtThreadSync completely, and I suspect that a successful implementation of exec-by-default will make JDK-8307817 no longer needed as well.

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

PR Comment: https://git.openjdk.org/jdk/pull/19102#issuecomment-2101823326


More information about the hotspot-dev mailing list