RFR: JDK-8282798 java.lang.runtime.Carrier [v5]

Glavo duke at openjdk.java.net
Fri Mar 11 16:13:47 UTC 2022


On Fri, 11 Mar 2022 15:17:30 GMT, Jim Laskey <jlaskey at openjdk.org> wrote:

>> We propose to provide a runtime anonymous carrier class object generator; java.lang.runtime.Carrier. This generator class is designed to share anonymous classes when shapes are similar. For example, if several clients require objects containing two integer fields, then Carrier will ensure that each client generates carrier objects using the same underlying anonymous class. 
>> 
>> See JBS for details.
>
> Jim Laskey has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Use long array for primitives
>  - Use long arrays for primitives

This is very exciting, it sounds like we can implement unboxed variable arguments lists based on it in the future ([JDK-8182862](https://bugs.openjdk.java.net/browse/JDK-8182862)), is that so?

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

PR: https://git.openjdk.java.net/jdk/pull/7744


More information about the core-libs-dev mailing list