Bug 960 - CLCommandQueueTest.concurrencyTest() throws ConcurrentModificationException on context cleanup
Summary: CLCommandQueueTest.concurrencyTest() throws ConcurrentModificationException o...
Status: RESOLVED FIXED
Alias: None
Product: Jocl
Classification: JogAmp
Component: opencl (show other bugs)
Version: 1
Hardware: All macosx
: --- normal
Assignee: Wade Walker
URL:
Depends on:
Blocks:
 
Reported: 2014-02-05 20:57 CET by Wade Walker
Modified: 2014-02-12 03:03 CET (History)
1 user (show)

See Also:
Type: ---
SCM Refs:
0874fa955c0401dba9f54816a9654bb4380abed8
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.