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

Satyen Subramaniam ssubramaniam at openjdk.org
Thu Mar 20 22:23:22 UTC 2025


Backporting JDK-8337681: PNGImageWriter uses much more memory than necessary. Fixes issue with the PNGImageWriter making unnecessary copies of raster and data buffers when PNG images are written. Adds test to confirm behavior doesn't cause regressions.

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

Commit messages:
 - Backport 89a15f1414f89d2dd32eac791e9155fcb4207e56

Changes: https://git.openjdk.org/jdk21u-dev/pull/1535/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1535&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/jdk21u-dev/pull/1535.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1535/head:pull/1535

PR: https://git.openjdk.org/jdk21u-dev/pull/1535


More information about the jdk-updates-dev mailing list