The previous change results in a larger destination raster. 
AffineTransformOp does not always have a mapped value to write into every 
destination pixel.
The native memory allocated by medialib is not zeroed out and the code in the 
JDK bridge to it only zeroed out the first w*h bytes, not all channels.

So sometimes, you'd have residual data. The fix is to zero it out. 

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - 8373065

Changes: https://git.openjdk.org/jdk/pull/30976/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30976&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8373065
  Stats: 11 lines in 4 files changed: 5 ins; 1 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/30976.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30976/head:pull/30976

PR: https://git.openjdk.org/jdk/pull/30976

Reply via email to