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 197650 - deadlock in BuiltinTypes
Summary: deadlock in BuiltinTypes
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.0.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 09:06 UTC by Alexander Simon
Modified: 2011-04-13 08:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump (22.19 KB, text/plain)
2011-04-12 09:06 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2011-04-12 09:06:12 UTC
Created attachment 107668 [details]
thread dump

class has storage:
Map<CharSequence, CsmBuiltIn> types = new HashMap<CharSequence, CsmBuiltIn>();
Access to storage does not synchronized.
It results in dead lock in multi-thread application.
Comment 1 Vladimir Voskresensky 2011-04-12 10:30:04 UTC
it's not dead lock, but get in infinite cycle

http://hg.netbeans.org/cnd-main/rev/8eecd99044bd
Comment 2 Quality Engineering 2011-04-13 08:40:50 UTC
Integrated into 'main-golden', will be available in build *201104130401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8eecd99044bd
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #197650 -  deadlock in BuiltinTypes
- use concurrent map as storage