[OpenJDK 2D-Dev] Integrated: 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 20:54:57 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.

This pull request has now been integrated.

Changeset: e4df2098
Author:    Laurent Bourgès <lbourges at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/e4df2098
Stats:     345 lines in 7 files changed: 307 ins; 1 del; 37 mod

7018932: Drawing very large coordinates with a dashed Stroke can cause Java to hang

Reviewed-by: serb, prr

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

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


More information about the 2d-dev mailing list