Integrated: 8289607: Change hotspot/jtreg tests to not use Thread.suspend/resume
Leonid Mesnik
lmesnik at openjdk.org
Fri Sep 23 17:48:42 UTC 2022
On Mon, 19 Sep 2022 23:02:42 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:
> The Thread.suspend/resume is replaced by JVM TI SuspendThread/ResumeThread whether it is possible.
> Testcase from test test/hotspot/jtreg/vmTestbase/nsk/jdi/ThreadReference/interrupt/interrupt001.java was removed because only one environment can suspend threads so debugger is not compatible with JVM TI agent suspending test.
>
> Test test/hotspot/jtreg/runtime/handshake/HandshakeSuspendExitTest.java starts failing because it got JVMTI_ERROR_INTERNAL. The problem is that JvmtiSuspendControl::resume() returned false. However, it might happen only if the thread is not suspended, which means that it should be JVMTI_ERROR_THREAD_NOT_SUSPENDED.
This pull request has now been integrated.
Changeset: 543851db
Author: Leonid Mesnik <lmesnik at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/543851db926469df57a8f4a2bd3458349012145f
Stats: 393 lines in 16 files changed: 163 ins; 168 del; 62 mod
8289607: Change hotspot/jtreg tests to not use Thread.suspend/resume
Reviewed-by: sspitsyn, cjplummer
-------------
PR: https://git.openjdk.org/jdk/pull/10351
More information about the serviceability-dev
mailing list