Bug 960

Summary: CLCommandQueueTest.concurrencyTest() throws ConcurrentModificationException on context cleanup
Product: [JogAmp] Jocl Reporter: Wade Walker <wwalker3>
Component: openclAssignee: Wade Walker <wwalker3>
Status: RESOLVED FIXED    
Severity: normal CC: sgothel
Priority: ---    
Version: 1   
Hardware: All   
OS: macosx   
Type: --- SCM Refs:
0874fa955c0401dba9f54816a9654bb4380abed8
Workaround: ---

Description Wade Walker 2014-02-05 20:57:19 CET
Seems to be the classic case of changing a collection while iterating over it:

java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextEntry(HashMap.java:926)
	at java.util.HashMap$ValueIterator.next(HashMap.java:954)
	at com.jogamp.opencl.CLContext.release(CLContext.java:513)
	at com.jogamp.opencl.CLCommandQueueTest.concurrencyTest(CLCommandQueueTest.java:513)

I'm looking into this one now.
Comment 1 Wade Walker 2014-02-07 21:59:36 CET
Got a solution for this, will submit a new branch soon.
Comment 2 Wade Walker 2014-02-08 21:11:11 CET
Fixes are available now in https://github.com/WadeWalker/jocl/compare/fix_jocl_bugs_959_960_963_964. I still need to test them on Windows and Linux though, so not ready to merge yet.