Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347204 - Using Sun JRE usually causes IDE deadlock
Summary: Using Sun JRE usually causes IDE deadlock
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Justin Spadea CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 13:56 EDT by Justin Spadea CLA
Modified: 2017-02-23 14:15 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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