< prev index next >

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

Print this page
@@ -69,10 +69,11 @@
  
      static final int DEPTH = 200;
      static final int THRD_COUNT = 100;
      static final String[] EXPECTED_METHODS = {
              "java.lang.Object.wait",
+             "java.lang.Object.wait0",
              "nsk.stress.strace.strace013Thread.run",
              "nsk.stress.strace.strace013Thread.recursiveMethod"
      };
  
  

@@ -217,11 +218,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 >