< prev index next >

test/hotspot/jtreg/serviceability/jvmti/thread/GetStackTrace/GetStackTraceCurrentThreadTest/libGetStackTraceCurrentThreadTest.cpp

Print this page
*** 34,19 ***
  static frame_info expected_virtual_frames[] = {
      {"LGetStackTraceCurrentThreadTest;", "check", "(Ljava/lang/Thread;)V"},
      {"LGetStackTraceCurrentThreadTest;", "dummy", "()V"},
      {"LGetStackTraceCurrentThreadTest;", "chain", "()V"},
      {"LTask;", "run", "()V"},
!     {"Ljava/lang/VirtualThread;", "run", "(Ljava/lang/Runnable;)V"}
  };
  
  static frame_info expected_platform_frames[] = {
      {"LGetStackTraceCurrentThreadTest;", "check", "(Ljava/lang/Thread;)V"},
      {"LGetStackTraceCurrentThreadTest;", "dummy", "()V"},
      {"LGetStackTraceCurrentThreadTest;", "chain", "()V"},
      {"LTask;", "run", "()V"},
!     {"Ljava/lang/Thread;", "run", "()V"}
  };
  
  JNIEXPORT jint JNICALL
  Agent_OnLoad(JavaVM *jvm, char *options, void *reserved) {
    jint res = jvm->GetEnv((void **) &jvmti, JVMTI_VERSION_1_1);
--- 34,21 ---
  static frame_info expected_virtual_frames[] = {
      {"LGetStackTraceCurrentThreadTest;", "check", "(Ljava/lang/Thread;)V"},
      {"LGetStackTraceCurrentThreadTest;", "dummy", "()V"},
      {"LGetStackTraceCurrentThreadTest;", "chain", "()V"},
      {"LTask;", "run", "()V"},
!     {"Ljava/lang/VirtualThread;", "runWith", "(Ljava/lang/Object;Ljava/lang/Runnable;)V"},
+     {"Ljava/lang/VirtualThread;", "run", "(Ljava/lang/Runnable;)V"},
  };
  
  static frame_info expected_platform_frames[] = {
      {"LGetStackTraceCurrentThreadTest;", "check", "(Ljava/lang/Thread;)V"},
      {"LGetStackTraceCurrentThreadTest;", "dummy", "()V"},
      {"LGetStackTraceCurrentThreadTest;", "chain", "()V"},
      {"LTask;", "run", "()V"},
!     {"Ljava/lang/Thread;", "runWith", "(Ljava/lang/Object;Ljava/lang/Runnable;)V"},
+     {"Ljava/lang/Thread;", "run", "()V"},
  };
  
  JNIEXPORT jint JNICALL
  Agent_OnLoad(JavaVM *jvm, char *options, void *reserved) {
    jint res = jvm->GetEnv((void **) &jvmti, JVMTI_VERSION_1_1);
< prev index next >