[jdk21u-dev] Withdrawn: 8332586: Avoid cloning empty arrays in java.lang.reflect.{Method,Constructor}

duke duke at openjdk.org
Thu Oct 30 00:55:15 UTC 2025


On Wed, 3 Sep 2025 03:25:29 GMT, Rui Li <duke at openjdk.org> wrote:

> A clean backport of https://bugs.openjdk.org/browse/JDK-8332586. 
> 
> A perf improvement: when members are empty arrays, return them as it is (empty arrays are non modifiable) rather than clone an new empty array. 
> 
> Logic is straightforward. Low risk. On tip for over a year.

This pull request has been closed without being integrated.

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

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


More information about the jdk-updates-dev mailing list