< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/stress/strace/strace004.java

Print this page
@@ -106,14 +106,26 @@
      static final int THRD_COUNT = 100;
      static final int REPEAT_COUNT = 10;
      static final String[] EXPECTED_METHODS = {
              "java.lang.System.arraycopy",
              "java.lang.Object.wait",
+             "java.lang.Object.wait0",
+             "java.lang.System$2.headStackableScope",
+             "java.lang.Thread.headStackableScopes",
              "java.lang.Thread.exit",
              "java.lang.Thread.yield",
+             "java.lang.Thread.yield0",
+             "java.lang.Thread.clearReferences",
+             "java.lang.Thread.currentCarrierThread",
+             "java.lang.Thread.currentThread",
+             "java.lang.Thread.currentThread0",
+             "java.lang.Thread.getVirtualThread",
+             "java.lang.Thread.threadContainer",
              "java.lang.ThreadGroup.remove",
              "java.lang.ThreadGroup.threadTerminated",
+             "jdk.internal.vm.StackableScope.head",
+             "jdk.internal.vm.StackableScope.popAll",
              "nsk.stress.strace.strace004Thread.run",
              "nsk.stress.strace.strace004Thread.recursiveMethod"
      };
  
  

@@ -258,11 +270,11 @@
      }
  
      boolean checkElement(StackTraceElement element) {
          String name = element.getClassName() + "." + element.getMethodName();
          for (int i = 0; i < EXPECTED_METHODS.length; i++) {
-             if (EXPECTED_METHODS[i].compareTo(name) == 0)
+             if (name.startsWith(EXPECTED_METHODS[i]))
                  return true;
          }
          return false;
      }
  
< prev index next >