Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347204

Summary: Using Sun JRE usually causes IDE deadlock
Product: z_Archived Reporter: Justin Spadea <jspadea>
Component: EDTAssignee: Justin Spadea <jspadea>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Justin Spadea CLA 2011-05-25 13:56:19 EDT
This is due to an old Sun JRE bug regarding locking in the classloader (see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4670071)

The workarounds we've been suggesting:
Use an IBM JRE if you have one
Add the following VM args if you have to use a Sun JRE: -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass
Comment 1 Justin Spadea CLA 2011-05-25 14:02:52 EDT
A couple of us have been running with a proposed fix for about a week now and it seems to have resolved the deadlock without introducing other issues. The following have been modified:

InitializeSystemPartsJob.java
MofEglPlugin.java

Description of change:
MofEglPlugin no longer loads the system parts when the plug-in is activated. Clients must explicitly invoke its initializeSystemPackages() method to load the system parts. The method fred(), which was only used to get the plug-in to load if not loaded already, has been removed.
Comment 2 Justin Spadea CLA 2011-06-10 12:31:06 EDT
Verified in 6/9/11 build