[jdk17u-dev] RFR: 8337681: PNGImageWriter uses much more memory than necessary

Daniel Hu duke at openjdk.org
Tue Nov 18 01:08:08 UTC 2025


Clean backport. Fixes issue with the PNGImageWriter making unnecessary copies of raster and data buffers when PNG images are written. Passes GHA. Added test passes with the change and fails without.

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

Commit messages:
 - Backport 89a15f1414f89d2dd32eac791e9155fcb4207e56

Changes: https://git.openjdk.org/jdk17u-dev/pull/4187/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=4187&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8337681
  Stats: 200 lines in 2 files changed: 195 ins; 1 del; 4 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/4187.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/4187/head:pull/4187

PR: https://git.openjdk.org/jdk17u-dev/pull/4187


More information about the jdk-updates-dev mailing list