Integrated: 8297286: runtime/vthread tests crashing after JDK-8296324
Serguei Spitsyn
sspitsyn at openjdk.org
Tue Apr 4 00:50:41 UTC 2023
On Wed, 22 Mar 2023 02:12:12 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
> The fix is to enable virtual threads support for late binding JVMTI agents.
> The fix includes:
> - New function `JvmtiEnvBase::enable_virtual_threads_notify_jvmti()` which does enabling JVMTI VTMS transition notifications in case of agent loaded into running VM. This function executes a VM operation counting VTMS transition bits in all `JavaThread`'s to correctly set the static counter `_VTMS_transition_count` needed for VTMS transition protocol.
> - New function `JvmtiEnvBase::disable_virtual_threads_notify_jvmti()` which is needed for testing. It is used by the `WhiteBox` API.
> - New WhiteBox function `WB_SetVirtualThreadsNotifyJvmtiMode(JNIEnv* env, jobject wb, jboolean enable)` needed for testing of this update.
> - New regression test: `serviceability/jvmti/vthread/ToggleNotifyJvmtiTest`
>
> Testing:
> - New test: `serviceability/jvmti/vthread/ToggleNotifyJvmtiTest`
> - The originally failed tests are expected to pass now:
> `runtime/vthread/RedefineClass.java`
> `runtime/vthread/TestObjectAllocationSampleEvent.java`
> - In progress: Run the tiers 1-6 to make sure there are no regression.
This pull request has now been integrated.
Changeset: a1a9ec6e
Author: Serguei Spitsyn <sspitsyn at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/a1a9ec6e46b70d5436711f89f4bf603ebacc8060
Stats: 574 lines in 15 files changed: 554 ins; 9 del; 11 mod
8297286: runtime/vthread tests crashing after JDK-8296324
Reviewed-by: lmesnik, pchilanomate, cjplummer
-------------
PR: https://git.openjdk.org/jdk/pull/13133
More information about the serviceability-dev
mailing list