[jdk17] RFR: 8266889: [macosx-aarch64] Crash with SIGBUS in MarkActivationClosure::do_code_blob during vmTestbase/nsk/jvmti/.../bi04t002 test run [v2]

Anton Kozlov akozlov at openjdk.java.net
Tue Jul 13 10:13:39 UTC 2021


> The change adds W^X transition in RawMonitor family of functions, fixing the crash. RawMonitor functions are treated specially, so W^X transition is not inserted automatically. A better fix would be in .xml description for entries generation, but for now it is too risky. I hope to get this fixed in 17 in the simplest way and do re-work in the 18. This change is still 100% correct for the reported bug.
> 
> Verified by: 
> 
> jtreg -vmoption:-XX:+AssertWXAtThreadSync test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/bcinstr/BI04/bi04t002

Anton Kozlov has updated the pull request incrementally with one additional commit since the last revision:

  Subset of RawMonitor; comments added

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

Changes:
  - all: https://git.openjdk.java.net/jdk17/pull/244/files
  - new: https://git.openjdk.java.net/jdk17/pull/244/files/4598ddb8..0088479c

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk17&pr=244&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk17&pr=244&range=00-01

  Stats: 5 lines in 1 file changed: 2 ins; 3 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk17/pull/244.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/244/head:pull/244

PR: https://git.openjdk.java.net/jdk17/pull/244


More information about the serviceability-dev mailing list