JVM hangs beyond recovery

Stas Oskin stas.oskin at gmail.com
Sun Jun 13 00:27:09 PDT 2010

Hi again.

First of all, thanks for the all help.

> We start in Java, try to load a native library and enter the dynamic
> linker. That in turn causes native code in libxuggle-xuggler-io.3 to run
> which tries to invoke Java code: com::xuggle::ferry::Logger::getStaticLogger
> If this is done while holding a lock in the dynamic linker then we will
> deadlock if any other thread tries to acquire that lock and a safepoint is
> trigerred - which in the above case is done by the thread holding that lock.
I posted this issue to Xuggler list, and Xuggler developer/founder Art
quickly posted a possible fix. He is not 100% sure it solves it, and my own
Java/native skills are not so great to validate it (other then actually
using is and finding out if it really helped, which I'm doing), so I will
very appreciate if you could give a quick look to fix and give your verdict.

Here is the diff:


Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20100613/8d6c8b1c/attachment.html 

More information about the hotspot-runtime-dev mailing list