On Sat, 9 Jan 2021 09:05:27 GMT, Laurent Bourgès <lbour...@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 <lbour...@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