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

David Holmes dholmes at openjdk.org
Wed Mar 13 09:52:15 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.

As I wrote in JBS, shouldn't this be handled by `ThreadInVMfromNative`?

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

PR Review: https://git.openjdk.org/jdk/pull/18238#pullrequestreview-1933634023


More information about the hotspot-jfr-dev mailing list