Phil,
bug https://bugs.openjdk.java.net/browse/JDK-8148886
Thanks for creating the bug !
I spent some time tracking down the bug and make the diagnostic:
1. I enabled diagnostics:
*-Dsun.java2d.renderer.log=true*
*-Dsun.java2d.renderer.doChecks=true*
-Dsun.java2d.renderer.doStats=true
-Dsun.
Interesting, so this can happen with any custom Paint or Composite.
Yes, re-entrance detection should be done.
Just out of curiosity - the 10% performance hit for the CLQ storage vs.
thread-local - that was specifically only for the time it takes to
retreive the Renderer, right? I can't imagi