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 246766 - java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification
Summary: java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkFor...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-29 06:05 UTC by Exceptions Reporter
Modified: 2017-04-08 03:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 211488


Attachments
stacktrace (2.18 KB, text/plain)
2014-08-29 06:05 UTC, Exceptions Reporter
Details
proposed patch (2.15 KB, patch)
2014-08-29 06:25 UTC, Alexander Simon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-08-29 06:05:17 UTC
This issue was reported manually by alexvsimon.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 201408210001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.11-b03, Java(TM) SE Runtime Environment, 1.8.0_11-b12
OS: Linux

User Comments:
GUEST: start gdb debugging




Stacktrace: 
java.util.ConcurrentModificationException
   at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:886)
   at java.util.ArrayList$Itr.next(ArrayList.java:836)
   at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerImpl$InstBreakpointModel.findBptByAddr(NativeDebuggerImpl.java:1442)
   at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerImpl$ControllerSupport.updateBreakpoint(NativeDebuggerImpl.java:1382)
   at org.netbeans.modules.cnd.debugger.common2.debugger.NativeDebuggerImpl.InstBptRemoved(NativeDebuggerImpl.java:1611)
   at org.netbeans.modules.cnd.debugger.common2.debugger.DebuggerAnnotation.removeInstBpt(DebuggerAnnotation.java:332)
Comment 1 Exceptions Reporter 2014-08-29 06:05:20 UTC
Created attachment 148949 [details]
stacktrace
Comment 2 Alexander Simon 2014-08-29 06:25:21 UTC
Created attachment 148950 [details]
proposed patch
Comment 3 Alexander Simon 2014-10-07 14:34:59 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/8520c9f5f549
Comment 4 Quality Engineering 2014-10-08 03:02:05 UTC
Integrated into 'main-silver', will be available in build *201410080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8520c9f5f549
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #246766 java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification
Comment 5 Quality Engineering 2015-07-17 01:18:17 UTC
Integrated into 'main-silver', will be available in build *201507170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b38313295ee0
User: Alexander Simon <alexvsimon@netbeans.org>
Log: work around CR 21427159 Disassembly tab has a lot of problems

The fix of the Bug #246766 - java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification
introduced a performance problem with initializing large disassembly view (because adding line by line in the CopyOnWriteArrayList is expensive operation).
Replace adding line by line to adding collection of lines.
Comment 6 Quality Engineering 2017-04-08 03:06:22 UTC
Integrated into 'main-silver', will be available in build *201704080002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/471d74f5350d
User: Alexander Simon <alexvsimon@netbeans.org>
Log: work around CR 21427159 Disassembly tab has a lot of problems

The fix of the Bug #246766 - java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification
introduced a performance problem with initializing large disassembly view (because adding line by line in the CopyOnWriteArrayList is expensive operation).
Replace adding line by line to adding collection of lines.