On Thu, 3 Mar 2022 14:30:34 GMT, Claes Redestad wrote:
> This is also only a partial solution, since the initial array is created and
> injected by the VM on a "root" Constructor/Method, see for example the code
> for new method:
>
> https://github.com/openjdk/jdk/blob/5c187e34a58769a129a0aae9
On Wed, 2 Mar 2022 20:28:45 GMT, Joe Darcy wrote:
> Refactoring of Method and Constructor to share a single empty array for
> parameters and exceptions as well as type variables.
>
> Existing core reflection regression tests pass with the change.
This is also only a partial solution, since the
On Wed, 2 Mar 2022 20:28:45 GMT, Joe Darcy wrote:
> Refactoring of Method and Constructor to share a single empty array for
> parameters and exceptions as well as type variables.
>
> Existing core reflection regression tests pass with the change.
src/java.base/share/classes/java/lang/reflect/E
On Wed, 2 Mar 2022 20:28:45 GMT, Joe Darcy wrote:
> Refactoring of Method and Constructor to share a single empty array for
> parameters and exceptions as well as type variables.
>
> Existing core reflection regression tests pass with the change.
src/java.base/share/classes/java/lang/reflect/E
On Wed, 2 Mar 2022 20:28:45 GMT, Joe Darcy wrote:
> Refactoring of Method and Constructor to share a single empty array for
> parameters and exceptions as well as type variables.
>
> Existing core reflection regression tests pass with the change.
Marked as reviewed by mchung (Reviewer).
-
On Wed, 2 Mar 2022 20:28:45 GMT, Joe Darcy wrote:
> Refactoring of Method and Constructor to share a single empty array for
> parameters and exceptions as well as type variables.
>
> Existing core reflection regression tests pass with the change.
PS I'll update the copyrights before pushing.
Refactoring of Method and Constructor to share a single empty array for
parameters and exceptions as well as type variables.
Existing core reflection regression tests pass with the change.
-
Commit messages:
- JDK-8177107: Reduce memory footprint of java.lang.reflect.Constructor/Me