Search code examples
javaclassloaderdeadlockequinox

Equinox classloader deadlock


On Equinox-based application deadlock appears sometimes on an internal classloader. I've found the issue on Equinox bug-tracker which describes my problem. But the fix is not complete for Java 6 or lower and the resolution for Java 6 is just a workaround: adding two VM options

-XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass

Also there is a Sun bug for native classloader() and the fix seems to be incomplete also. So the workaround is the only solution at the moment.

So the question is: does anyone have any troubles or issues connected with this workaround? Thanks in advance.


Solution

  • After few days of testing no issues were found with this workaround. So this workaround solved the problem.