RFR: 8289607: Change com/sun/jdi tests to not use Thread.suspend/resume [v2]

Leonid Mesnik lmesnik at openjdk.org
Tue Sep 20 00:36:38 UTC 2022


> 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.

Leonid Mesnik has updated the pull request incrementally with one additional commit since the last revision:

  revert changes

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/10351/files
  - new: https://git.openjdk.org/jdk/pull/10351/files/8f660693..356ee078

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=10351&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10351&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/10351.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10351/head:pull/10351

PR: https://git.openjdk.org/jdk/pull/10351


More information about the hotspot-dev mailing list