[jdk17] RFR: 8266889: [macosx-aarch64] Crash with SIGBUS in MarkActivationClosure::do_code_blob during vmTestbase/nsk/jvmti/.../bi04t002 test run
David Holmes
dholmes at openjdk.java.net
Tue Jul 13 01:28:51 UTC 2021
On Mon, 12 Jul 2021 20:22:25 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:
> 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
I can understand that raw_enter and raw_wait need this fix because they have the ThreadBlockInVM transition; but why do we need it for raw_exit and raw_notify when they do not change the thread state ??
-------------
PR: https://git.openjdk.java.net/jdk17/pull/244
More information about the hotspot-dev
mailing list