On Sat, 21 Jan 2023 19:44:39 GMT, Andrey Turbanov <[email protected]> wrote:

> No need to fill elements of array with default values if it was just created. 
> Java guarantees that all elements of array have default values after 
> allocations: boolean - `false`, reference types - `null`, double - `0.`

This pull request has now been integrated.

Changeset: f79e5871
Author:    Andrey Turbanov <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/f79e5871813ab9554e3250cf4b36e92522bddd0a
Stats:     18 lines in 3 files changed: 0 ins; 14 del; 4 mod

8300828: Avoid unnecessary array fill after creation in com.sun.media.sound

Reviewed-by: serb, prr

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

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

Reply via email to