1 Local definition of wait() conflicts with wait(3C).
3 --- a/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetThreadState/thrstat001/thrstat001.cpp Fri Oct 6 06:33:33 2023
4 +++ b/test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetThreadState/thrstat001/thrstat001.cpp Thu Oct 19 09:25:58 2023
9 -wait(const char* func_name, jrawMonitorID lock, jint millis) {
10 +thrstat001wait(const char* func_name, jrawMonitorID lock, jint millis) {
11 jvmtiError err = jvmti->RawMonitorWait(lock, (jlong)millis);
12 if (err != JVMTI_ERROR_NONE) {
13 printf("%s: unexpected error in RawMonitorWait: %s (%d)\n",
17 lock("checkStatus", wait_lock);
18 - wait("checkStatus", wait_lock, millis);
19 + thrstat001wait("checkStatus", wait_lock, millis);
20 unlock("checkStatus", wait_lock);