RFR: 8327990: [macosx-aarch64] JFR enters VM without WXWrite

Richard Reingruber rrich at openjdk.org
Wed Mar 13 16:43:12 UTC 2024


On Tue, 12 Mar 2024 15:05:00 GMT, Richard Reingruber <rrich at openjdk.org> wrote:

> This pr changes  `JfrJvmtiAgent::retransform_classes()` and `jfr_set_enabled` to switch to `WXWrite` before transitioning to the vm.
> 
> Testing:
> make test TEST=jdk/jfr/event/runtime/TestClassLoadEvent.java TEST_VM_OPTS=-XX:+AssertWXAtThreadSync
> make test TEST=compiler/intrinsics/klass/CastNullCheckDroppingsTest.java TEST_VM_OPTS=-XX:+AssertWXAtThreadSync
> 
> More tests are pending.

@MBaesken found 2 more locations in jvmti that need switching to `WXWrite`

JvmtiExport::get_jvmti_interface
GetCarrierThread

Both use `ThreadInVMfromNative`.

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

PR Comment: https://git.openjdk.org/jdk/pull/18238#issuecomment-1994930681


More information about the hotspot-jfr-dev mailing list