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 - Deadlock in SourceLevelQueryImpl vs. ProjectManager mutex
Summary: Deadlock in SourceLevelQueryImpl vs. ProjectManager mutex
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Freeform (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords: THREAD
Depends on: 58347
Blocks:
  Show dependency tree
 
Reported: 2005-06-29 20:17 UTC by Jesse Glick
Modified: 2005-11-29 16:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (15.43 KB, text/plain)
2005-06-29 20:17 UTC, Jesse Glick
Details

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