< prev index next >

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

Print this page
*** 73,10 ***
--- 73,19 ---
      static final int THRD_COUNT = 100;
      static final String NATIVE_LIB = "strace009";
      static final int SLEEP_TIME = 50;
      static final String[] EXPECTED_METHODS = {
              "java.lang.Thread.sleep",
+             "java.lang.Thread.sleep0",
+             "java.lang.Thread.getVirtualThread",
+             "jdk.internal.event.ThreadSleepEvent.<clinit>",
+             "jdk.internal.event.ThreadSleepEvent.isTurnedOn",
+             "jdk.internal.event.ThreadSleepEvent.isEnabled",
+             "java.lang.Thread.sleepMillis",
+             "java.lang.Thread.currentCarrierThread",
+             "java.lang.Thread.currentThread",
+             "java.lang.Thread.currentThread0",
              "nsk.stress.strace.strace009Thread.run",
              "nsk.stress.strace.strace009Thread.recursiveMethod1",
              "nsk.stress.strace.strace009Thread.recursiveMethod2"
      };
  

*** 206,11 ***
      }
  
      static 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)
                  return true;
          }
          return false;
      }
  
--- 215,11 ---
      }
  
      static boolean checkElement(StackTraceElement element) {
          String name = element.getClassName() + "." + element.getMethodName();
          for (int i = 0; i < EXPECTED_METHODS.length; i++) {
!             if (name.startsWith(EXPECTED_METHODS[i]))
                  return true;
          }
          return false;
      }
  
< prev index next >