harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5339) [drlvm][thread] provide synchronization info in thread dump
Date Mon, 24 Dec 2007 12:07:43 GMT
[drlvm][thread] provide synchronization info in thread dump

                 Key: HARMONY-5339
                 URL: https://issues.apache.org/jira/browse/HARMONY-5339
             Project: Harmony
          Issue Type: Improvement
          Components: App-Oriented Bug Reports, DRLVM
            Reporter: Alexey Varlamov

The important debugging facility is not fully implemented in drlvm: thread info dump (handled
via Ctrl-Break on Win and Ctrl-/ on Linux). 
Currently it provides Java stack-traces only.  OTOH competitive impls provide much more information,
including synchronization state for each thread (which locks it holds, wait state, etc). Below
is an example of such output:
Full thread dump Java HotSpot(TM) Client VM (1.5.0_08-b03 mixed mode):

"CritiquingThread" daemon prio=4 tid=0x0bdd4740 nid=0x5088 waiting on condition [0x0b6ff000..0x0b6ffc6c]
        at java.lang.Thread.sleep(Native Method)
        at org.argouml.cognitive.Designer.run(Designer.java:360)
        at java.lang.Thread.run(Thread.java:595)

"DestroyJavaVM" prio=6 tid=0x00035bf8 nid=0x116f8 waiting on condition [0x00000000..0x0007fae8]

"TimerQueue" daemon prio=6 tid=0x0bce16c8 nid=0x412e8 in Object.wait() [0x0b67f000..0x0b67fd6c]
        at java.lang.Object.wait(Native Method)
        - waiting on <0x037f5e50> (a javax.swing.TimerQueue)
        at javax.swing.TimerQueue.run(TimerQueue.java:233)
        - locked <0x037f5e50> (a javax.swing.TimerQueue)
        at java.lang.Thread.run(Thread.java:595)

DRLVM should also provide such info, this is critical for debugging Java deadlocks and other
threading issues, see HARMONY-5261 for example. 
As a further enhancement, it could auto-detect and highlight deadlocks in the dump output.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message