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 212263

Summary: Deadlock between NbLoaderPool.class and DataLoaderPool.class
Product: platform Reporter: Jesse Glick <jglick>
Component: Data SystemsAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal Keywords: THREAD
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 211820    
Attachments: Thread dump

Description Jesse Glick 2012-05-09 21:46:24 UTC
Dev build. Very similar to bug #211820 but slightly different call sequence in "main"; NbLoaderPool.doAdd is still synchronized:

	at org.openide.loaders.DataLoaderPool.getDefault(DataLoaderPool.java:90)
	- waiting to lock <0xabe687c0> (a java.lang.Class for org.openide.loaders.DataLoaderPool)
	at org.netbeans.core.NbLoaderPool.getNbLoaderPool(NbLoaderPool.java:664)
	at org.netbeans.core.NbLoaderPool.doAdd(NbLoaderPool.java:172)
	- locked <0xabe68848> (a java.lang.Class for org.netbeans.core.NbLoaderPool)
	at org.netbeans.core.NbLoaderPool.add(NbLoaderPool.java:152)
	at org.netbeans.core.CoreBridgeImpl.loadLoaderSection(CoreBridgeImpl.java:107)
Comment 1 Jesse Glick 2012-05-09 21:46:55 UTC
Created attachment 119237 [details]
Thread dump
Comment 2 Jaroslav Tulach 2012-05-21 12:03:43 UTC
ergonomics#915bb115724a
Comment 3 Quality Engineering 2012-05-23 09:03:56 UTC
Integrated into 'main-golden', will be available in build *201205230300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/915bb115724a
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #212263: Deadlock between NbLoaderPool.class and DataLoaderPool.class
don't call getNbLoaderPool() under lock