On Tue, 28 Apr 2026 20:23:16 GMT, Phil Race <[email protected]> wrote:

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

This pull request has now been integrated.

Changeset: 969b3fdc
Author:    Phil Race <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/969b3fdc9ccaa00d0ddda45f57c9b3ff6843b288
Stats:     11 lines in 4 files changed: 5 ins; 1 del; 5 mod

8373065: Test sun/awt/image/bug8038000.java failed: Pixels differ

Reviewed-by: jdv, azvegint

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

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

Reply via email to