[OpenJDK 2D-Dev] RFR: 7018932 : Drawing very large coordinates with a dashed Stroke can cause Java to hang

Laurent Bourgès lbourges at openjdk.java.net
Tue Jan 12 12:04:55 UTC 2021


On Sat, 9 Jan 2021 09:05:27 GMT, Laurent Bourgès <lbourges at openjdk.org> wrote:

> This is my fix proposal to this bug:
> - added new method strokeTo(... Region clip ...) in the abstract RenderingEngine class
> - fixed all RenderingEngine implementations in java.desktop module
> - MarlinRenderingEngine now uses the clip region to roughly & quickly clip the given shape in strokeTo(clip) 
> - LoopPipe.getStrokeSpans() uses the new strokeTo(clip) method to get good performance with huge dashed shapes.
> 
> I wrote a new test class to validate the bug fix.

Sergey, is it good now ?
I ran jtreg: OK.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2013


More information about the 2d-dev mailing list