[jdk21u-dev] RFR: 8327036: [macosx-aarch64] SIGBUS in MarkActivationClosure::do_code_blob reached from Unsafe_CopySwapMemory0
Richard Reingruber
rrich at openjdk.org
Fri Mar 1 07:19:17 UTC 2024
This adds a `ThreadWXEnable` to `JVM_ENTRY_FROM_LEAF`.
Without we can get similar crashes as described in the bug report when writing to the code cache.
Note that in jdk21 we cannot get the very same crash because the nmethod sweeper was removed in jdk20 with [JDK-8290025](https://bugs.openjdk.org/browse/JDK-8290025).
The fix passed our CI testing: JTReg tests: tier1-4 of hotspot and jdk. All of Langtools and jaxp. JCK, SPECjvm2008, SPECjbb2015, Renaissance Suite, and SAP specific tests (also with ParallelGC).
Testing was done with fastdebug builds on the main platforms and also on Linux/PPC64le.
-------------
Commit messages:
- Add ThreadWXEnable to JVM_ENTRY_FROM_LEAF macro
Changes: https://git.openjdk.org/jdk21u-dev/pull/305/files
Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=305&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8327036
Stats: 1 line in 1 file changed: 1 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk21u-dev/pull/305.diff
Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/305/head:pull/305
PR: https://git.openjdk.org/jdk21u-dev/pull/305
More information about the jdk-updates-dev
mailing list