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 213325 - Deadlock in ProxyLookup & MetaInfServicesLookup
Summary: Deadlock in ProxyLookup & MetaInfServicesLookup
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-31 15:08 UTC by Tomas Zezula
Modified: 2012-06-09 04:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (20.27 KB, text/plain)
2012-05-31 15:08 UTC, Tomas Zezula
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Zezula 2012-05-31 15:08:59 UTC
Created attachment 120146 [details]
Thread dump

Happens every time I run java.j2seproject tests. The tests deadlock with following thread dump.
Comment 1 Jaroslav Tulach 2012-06-04 12:43:59 UTC
org.openide.util.lookup.ProxyLookup$LazyCollection.computeDelegate(ProxyLookup.java:1106) calls org.openide.util.lookup.ProxyLookup$LazyCollection.toArray(ProxyLookup.java:1143)
under a lock and it probably should not.
Comment 2 Jaroslav Tulach 2012-06-07 07:22:20 UTC
I have improved the above problem in 6bc80035a076, but the test still deadlocks.
Comment 3 Jaroslav Tulach 2012-06-07 07:57:23 UTC
ergonomics#0a2bfc241d17
Comment 4 Quality Engineering 2012-06-09 04:35:41 UTC
Integrated into 'main-golden', will be available in build *201206090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6bc80035a076
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #213325: Don't hold locks when composing results into one proxy result