I have a Java/Scala application where several threads map and unmap (disjunct) OpenCL buffers at the same time. With OpenJDK and the Intel OpenCL implementation for CPUs it sometimes crashes on Linux (did not test on Windows). The following jar replicates that:
If executed as 'java -cp intel.fail-all.jar OpenCL' it crashes nearly always. The problem goes away when I use another OpenCL implementation (tested Intel/AMD/Nvidia GPU and AMD CPU) or another JVM (tested IBM J9).