Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8310211

serviceability/jvmti/thread/GetStackTrace/getstacktr03/getstacktr03.java failing

    XMLWordPrintable

Details

    • b03

    Backports

      Description

        This test is very sensitive to changes to Thread/VirtualThread as the test expects to see specific frames in stack traces. JDK-8308609 has removed an override of the internal runWith method so this test needs adjusting.

        This should fix it:

        --- a/test/hotspot/jtreg/serviceability/jvmti/thread/GetStackTrace/getstacktr03/libgetstacktr03.cpp
        +++ b/test/hotspot/jtreg/serviceability/jvmti/thread/GetStackTrace/getstacktr03/libgetstacktr03.cpp
        @@ -44,7 +44,7 @@ static frame_info expected_virtual_frames[] = {
             {"Lgetstacktr03;", "dummy", "()V"},
             {"Lgetstacktr03;", "chain", "()V"},
             {"Lgetstacktr03$Task;", "run", "()V"},
        - {"Ljava/lang/VirtualThread;", "runWith", "(Ljava/lang/Object;Ljava/lang/Runnable;)V"},
        + {"Ljava/lang/Thread;", "runWith", "(Ljava/lang/Object;Ljava/lang/Runnable;)V"},
             {"Ljava/lang/VirtualThread;", "run", "(Ljava/lang/Runnable;)V"},
             {"Ljava/lang/VirtualThread$VThreadContinuation$1;", "run", "()V"},
             {"Ljdk/internal/vm/Continuation;", "enter0", "()V"},

        Attachments

          Issue Links

            Activity

              People

                dcubed Daniel Daugherty
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: