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

Laurent Bourgès lbourges at openjdk.java.net
Sun Jan 10 21:10:13 UTC 2021


> 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.

Laurent Bourgès has updated the pull request incrementally with one additional commit since the last revision:

  fixed typo BasicSroke to BasicStroke

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2013/files
  - new: https://git.openjdk.java.net/jdk/pull/2013/files/02cc2cb1..0592f191

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2013&range=05
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2013&range=04-05

  Stats: 6 lines in 3 files changed: 0 ins; 0 del; 6 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2013.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2013/head:pull/2013

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


More information about the 2d-dev mailing list