8218812: vmTestbase/nsk/jvmti/GetAllThreads/allthr001/TestDescription.java failed
authordtitov
Thu, 14 Mar 2019 16:28:31 -0700
changeset 54141 421b47214391
parent 54140 8a66c92526cb
child 54142 6ab293f66cae
8218812: vmTestbase/nsk/jvmti/GetAllThreads/allthr001/TestDescription.java failed Reviewed-by: dlong, sspitsyn, jcbeyler
test/hotspot/jtreg/vmTestbase/nsk/share/jvmti/jvmti_tools.cpp
--- 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;
 }