[OpenJDK 2D-Dev] Review request for: JDK-8146238 Java2D Queue Flusher crash on OSX after switching between user accounts

Alexey Ushakov alexey.ushakov at jetbrains.com
Tue Dec 29 21:26:21 UTC 2015


Hello,
Here is the fix for openjdk9 of the crash in OGL pipeline on OSX , please have a look. The problem is also reproducible in JDK7 and JDK8
Bug : https://bugs.openjdk.java.net/browse/JDK-8146238
Webrev : http://cr.openjdk.java.net/~avu/JDK-8146238/webrev.00/
 
Issue : jdk crashes in Java2D Queue Flusher after minimising/maximising heavy swing app (IntelliJ IDEA for example) and changing user account, see the bug for more details

Root cause : CGLSurfaceData native data requires CGLGraphicsConfig native data for deallocation, however after disposing appropriate java objects (CGLGraphicsConfig and CGLSurfaceData) CGLGraphicsConfig native data might be deallocated before appropriate CGLSurfaceData native data, so deallocating latter causes crash

Solution : Added reference counting for CGLGraphicsConfig native data in order to dispose it after all native pointers for CGLSurfaceData objects

Best Regards,
Alexey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20151230/78ad5942/attachment.html>


More information about the 2d-dev mailing list