ptribble - defining your own wait() is asking for trouble --- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetThreadState/thrstat001/thrstat001.cpp~ Thu Feb 6 18:10:54 2020 +++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetThreadState/thrstat001/thrstat001.cpp Mon Apr 13 14:55:32 2020 @@ -70,7 +70,7 @@ } static void -wait(const char* func_name, jrawMonitorID lock, jint millis) { +wait001(const char* func_name, jrawMonitorID lock, jint millis) { jvmtiError err = jvmti->RawMonitorWait(lock, (jlong)millis); if (err != JVMTI_ERROR_NONE) { printf("%s: unexpected error in RawMonitorWait: %s (%d)\n", @@ -229,7 +229,7 @@ break; } lock("checkStatus", wait_lock); - wait("checkStatus", wait_lock, millis); + wait001("checkStatus", wait_lock, millis); unlock("checkStatus", wait_lock); }