RFR: 8300929: Avoid unnecessary array fill after creation in java.awt.image [v2]

Sergey Bylokhov serb at openjdk.org
Thu Feb 2 20:44:31 UTC 2023


On Thu, 26 Jan 2023 09:28:48 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

>> No need to fill elements of array with default values if it was just created. Java guarantees that all elements of numeric array have default values after allocations - 0.
>
> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8300929: Avoid unnecessary array fill after creation in java.awt.image
>   
>   add clarifying comment for the 'bandOffsets'

Marked as reviewed by serb (Reviewer).

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

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



More information about the client-libs-dev mailing list