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

SA: stack trace printed using "where" command does not show class name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 22
    • 22
    • hotspot
    • None
    • b18

    Description

      The stack trace printed by SA's "where" command does not show the class name of the frame's method. An example stack trace:

      Java Stack Trace for main
      Thread state = BLOCKED
       - private static native void sleepNanos0(long) @0x00007fdd53434d68 @bci = 0, pc = 0x00007fddc7543980 (Interpreted)

       - private static void sleepNanos(long) @0x00007fdd53434dd0 @bci = 33, line = 491, pc = 0x00007fddc753f166 (Interpreted)

       - public static void sleep(long) @0x00007fdd53434510 @bci = 25, line = 522, pc = 0x00007fddc753f166 (Interpreted)

       - public static void main(java.lang.String[]) @0x00007fdd48400488 @bci = 50, line = 8, pc = 0x00007fddc753f166 (Interpreted)

      After the fix, output is:

      Java Stack Trace for main
      Thread state = BLOCKED
       - private static native void sleepNanos0(long) @0x00007f373a4314c0 of public class java.lang.Thread @0x00007f373a0170c8 @bci = 0, pc = 0x00007f37af543c7c (Interpreted)

       - private static void sleepNanos(long) @0x00007f373a431528 of public class java.lang.Thread @0x00007f373a0170c8 @bci = 33, line = 491, pc = 0x00007f37af53f1a2 (Interpreted)

       - public static void sleep(long) @0x00007f373a430c68 of public class java.lang.Thread @0x00007f373a0170c8 @bci = 25, line = 522, pc = 0x00007f37af53f1a2 (Interpreted)

       - public static void main(java.lang.String[]) @0x00007f3730400488 of public class HelloWorld @0x00007f373b000800 @bci = 50, line = 8, pc = 0x00007f37af53f1a2 (Interpreted)

      Attachments

        Issue Links

          Activity

            People

              asmehra Ashutosh Mehra
              asmehra Ashutosh Mehra
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: