RFR: JDK-8210984: [TESTBUG] hs203t003 fails with "# ERROR: hs203t003.cpp, 218: NSK_CPP_STUB2 ( ResumeThread, jvmti, thread)"

Gary Adams gary.adams at oracle.com
Wed Sep 26 14:55:10 UTC 2018


A race condition exists in hs203t003 between the main test thread and
the processing in callbackFieldAccess processing. The main thread
already includes a polling loop to wait for the redefine class operation
to be performed, but it does not wait for the following suspend thread
operation to be completed.

This changeset adds an additional wait for the suspend thread to complete.
It also checks the error returns from popThreadFrame and resumeThread
to issue an additional error message if these native routines returned 
an error.

   Webrev: http://cr.openjdk.java.net/~gadams/8210984/webrev.00/
   Issue:  https://bugs.openjdk.java.net/browse/JDK-8210984


More information about the serviceability-dev mailing list