Test 
test/hotspot/jtreg/serviceability/jvmti/SuspendWithCurrentThread/SuspendWithCurrentThread.java
doesn't check that thread stops in SuspendThreadList(...).

Actually, before https://bugs.openjdk.java.net/browse/JDK-8257831 the thread 
didn't suspend itself but only get a request to be suspended.  So it continued 
to execute and stopped a little bit later.

Such behavior is a violation of spec which says " If the calling thread is 
specified in the request_list array, this function will not return until some 
other thread resumes it."

While the bug is fixed it is still useful to verify correct behavior.  If the 
fix is backported without JDK-8257831 test should start failing.

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

Commit messages:
 - 8264663: Update 
serviceability/jvmti/SuspendWithCurrentThread/SuspendWithCurrentThread.java to 
verify that suspend don't exit until resumed

Changes: https://git.openjdk.java.net/jdk/pull/3665/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3665&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8264663
  Stats: 8 lines in 1 file changed: 7 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3665.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3665/head:pull/3665

PR: https://git.openjdk.java.net/jdk/pull/3665

Reply via email to