Integrated: 8308429: jvmti/StopThread/stopthrd007 failed with "NoClassDefFoundError: Could not initialize class jdk.internal.misc.VirtualThreads"
Leonid Mesnik
lmesnik at openjdk.org
Tue Oct 3 15:06:52 UTC 2023
On Thu, 28 Sep 2023 17:00:00 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:
> The test fails because ThreadDeath is raised during class jdk.internal.misc.VirtualThreads initialization. The proposed fix is to pre-initialize this step to avoid such failures. See more details in the bug.
> I reproduced the original problem and verified that it is not reproduced after fix.
> Tested with tier5 and running nsk/jvmti tests with and without virtual test thread factory.
>
> I don't think that more complex fix is needed. There is a plan to review nsk/jvmti stopThread tests and see if
> ./serviceability/jvmti/vthread/StopThreadTest/StopThreadTest.java
> might be improved to cover them.
This pull request has now been integrated.
Changeset: 0e501f66
Author: Leonid Mesnik <lmesnik at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0e501f66dfc52a0e049d4fa39c1fcd24f1f2ee4b
Stats: 8 lines in 1 file changed: 7 ins; 0 del; 1 mod
8308429: jvmti/StopThread/stopthrd007 failed with "NoClassDefFoundError: Could not initialize class jdk.internal.misc.VirtualThreads"
Reviewed-by: dholmes, sspitsyn
-------------
PR: https://git.openjdk.org/jdk/pull/15966
More information about the serviceability-dev
mailing list