8218812: vmTestbase/nsk/jvmti/GetAllThreads/allthr001/TestDescription.java failed
Reviewed-by: dlong, sspitsyn, jcbeyler
--- a/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_tools.cpp Thu Mar 14 16:17:42 2019 -0700
+++ b/test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_tools.cpp Thu Mar 14 16:28:31 2019 -0700
@@ -584,6 +584,10 @@
int isThreadExpected(jvmtiEnv *jvmti, jthread thread) {
static const char *vm_jfr_buffer_thread_name = "VM JFR Buffer Thread";
static const char *jfr_request_timer_thread_name = "JFR request timer";
+ static const char *graal_management_bean_registration_thread_name =
+ "HotSpotGraalManagement Bean Registration";
+ static const char *graal_compiler_thread_name_prefix = "JVMCI CompilerThread";
+ static const size_t prefixLength = strlen(graal_compiler_thread_name_prefix);
jvmtiThreadInfo threadinfo;
NSK_JVMTI_VERIFY(jvmti->GetThreadInfo(thread, &threadinfo));
@@ -594,6 +598,13 @@
if (strcmp(threadinfo.name, jfr_request_timer_thread_name) == 0)
return 0;
+ if (strcmp(threadinfo.name, graal_management_bean_registration_thread_name) == 0)
+ return 0;
+
+ if ((strlen(threadinfo.name) > prefixLength) &&
+ strncmp(threadinfo.name, graal_compiler_thread_name_prefix, prefixLength) == 0)
+ return 0;
+
return 1;
}