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

Output from jstack mixed mode is misaligned

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Introduced In Version:
      17
    • Resolved In Build:
      b15

      Description

      When running jstack with mixed option, the output of the lines that doesn't have an address are misaligned as followings. It will improve readability to align the indentation.

      $ sudo jhsdb jstack --mixed --pid 5905
      ----------------- 5955 -----------------
      "event-handler" #20 daemon prio=5 tid=0x00007f133079a970 nid=0x1743 in Object.wait() [0x00007f1308bfe000]
         java.lang.Thread.State: WAITING (on object monitor)
         JavaThread state: _thread_blocked
      0x00007f133a85b9f3 __pthread_cond_wait + 0x243
      0x00007f133940b75b os::PlatformEvent::park() + 0x8b
      0x00007f13393b7b2d ObjectMonitor::wait(long, bool, Thread*) + 0xf4d
      0x00007f13397f0b95 ObjectSynchronizer::wait(Handle, long, Thread*) + 0x85
      0x00007f1338e85961 JVM_MonitorWait + 0x241
      0x00007f1328b264b7 java.lang.Object.wait(long) + 0xd7 (Native method)
      0x00007f132177b3c4 * java.lang.Object.wait() bci:2 line:338 (Compiled frame)
      * com.sun.tools.jdi.EventQueueImpl.removeUnfiltered(long) bci:64 line:190 (Compiled frame)
      * com.sun.tools.jdi.EventQueueImpl.remove(long) bci:18 line:97 (Interpreted frame)
      0x00007f1321009543 * com.sun.tools.jdi.EventQueueImpl.remove() bci:2 line:83 (Interpreted frame)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ksakata Koichi Sakata
              Reporter:
              ksakata Koichi Sakata
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: