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

DTrace/java: include method signatures in jstack() output

XMLWordPrintable

    • b75
    • generic
    • solaris

      DTrace jstack() function prints Java method names. But, it does not print method signatures. Because Java methods are overloaded by argument types, it may be useful to view signatures as part of output. With this change, the stack trace would look like:

                    pollsys:entry
                    libc.so.1`__pollsys+0x4
                    libc.so.1`poll+0x7c
                    libjvm.so`__1cIos_sleep6Fxb_i_+0xa28
                    libjvm.so`__1cCosFsleep6FpnGThread_xb_i_+0x1f0
                    libjvm.so`JVM_Sleep+0x518
                    java/lang/Thread.sleep(J)V
                    java/lang/Thread.sleep(J)V
                    t.main([Ljava/lang/String;)V
                   [....]

      instead of this:

                    pollsys:entry
                    libc.so.1`__pollsys+0x4
                    libc.so.1`poll+0x7c
                    libjvm.so`__1cIos_sleep6Fxb_i_+0x8d4
                    libjvm.so`__1cCosFsleep6FpnGThread_xb_i_+0x204
                    libjvm.so`JVM_Sleep+0x534
                    java/lang/Thread.sleep
                    java/lang/Thread.sleep
                    t.main
                    [....]

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: