This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 60638

Summary: Deadlock in SourceLevelQueryImpl vs. ProjectManager mutex
Product: java Reporter: Jesse Glick <jglick>
Component: FreeformAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: blocker Keywords: THREAD
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 58347    
Bug Blocks:    
Attachments: Thread dump

Description Jesse Glick 2005-06-29 20:17:07 UTC
SLQI may not acquire the PM mutex (read or write) while holding a private lock.
Comment 1 Jesse Glick 2005-06-29 20:17:44 UTC
Created attachment 22960 [details]
Thread dump
Comment 2 Jesse Glick 2005-06-29 20:18:35 UTC
Observed in the 200506211800 q-build.
Comment 3 Jan Lahoda 2005-11-29 16:47:14 UTC
Hopefully fixed in the trunk. Unfortunatelly, it (AFAIK) cannot work without a
private lock (read access is not enough, exclusive access to the cache is
needed, and write access cannot be used as the configurationXmlChanged is called
under the read access).

Checking in src/org/netbeans/modules/java/freeform/SourceLevelQueryImpl.java;
/cvs/java/freeform/src/org/netbeans/modules/java/freeform/SourceLevelQueryImpl.java,v
 <--  SourceLevelQueryImpl.java
new revision: 1.7; previous revision: 1.6
done