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.
Got a solution for this, will submit a new branch soon.
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.