[OpenJDK 2D-Dev] RFR: 8028539: Endless loop in native code of sun.java2d.loops.ScaledBlit
Phil Race
philip.race at oracle.com
Mon Oct 27 20:51:52 UTC 2014
https://bugs.openjdk.java.net/browse/JDK-8028539
http://cr.openjdk.java.net/~prr/8028539/
The trigger for the bug is that there is a translate component on the
graphics
which overflows what can be stored in a integer, and the native code we
reach
cannot handle this.
Although the sofware loops was hanging, additionally D3D and OGL on Windows
were not clipping this properly. The rendering appeared on screen when it
should have been clipped.
The fix is to add a test to see if any value overflows and then punt to
the TransformHelper code which can handle and clip this properly.
-phil.
More information about the 2d-dev
mailing list