< prev index next >

test/jdk/java/lang/Thread/virtual/GetStackTrace.java

Print this page
*** 62,17 ***
                  Stream.of(vthreadStack).forEach(System.out::println);
                  assertEquals("run", vthreadStack[vthreadStack.length - 1].getMethodName());
  
                  System.out.println();
  
-                 // top-most frame of carrier thread should be Continuation.run
                  // bottom-most frame of carrier thread should be Thread.run
                  var carrier = scheduler.thread();
                  System.out.println(carrier);
                  StackTraceElement[] carrierStack = carrier.getStackTrace();
                  Stream.of(carrierStack).forEach(System.out::println);
-                 assertEquals("run", carrierStack[0].getMethodName());
                  assertEquals("run", carrierStack[carrierStack.length - 1].getMethodName());
              } finally {
                  vthread.interrupt();
              }
          }
--- 62,15 ---
< prev index next >