GCJ Thread Dump

Bryce McKinlay mckinlay@redhat.com
Thu Feb 10 08:09:00 GMT 2005


Andrew Haley wrote:
>Mark Anderson writes:
> > Is there any way to get a thread dump from a running GCJ application in the 
> > same way you can send a kill -3 signal to the Sun JVM?
>>No, there isn't, and it would be extremely hard to do. Whan we have a
>problem like this, we attach gdb to the process.
>I'm curious - why is this so difficult? I think Sun's implementation 
shows what locks are held by each thread, along with the stack trace, 
which might be tricky. However, I don't see why plain old thread dumps 
would be so hard given that we can already unwind through signal 
handlers. Note that there is a enhancement request for this:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15686
Regards
Bryce


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /