RFR: JDK-8282798 java.lang.runtime.Carrier
Maurizio Cimadamore
mcimadamore at openjdk.java.net
Tue Mar 8 16:04:05 UTC 2022
On Tue, 8 Mar 2022 15:49:46 GMT, Maurizio Cimadamore <mcimadamore 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.
>
> src/java.base/share/classes/java/lang/runtime/Carrier.java line 432:
>
>> 430: * Construct a new object carrier class based on shape.
>> 431: *
>> 432: * @param carrierShape shape of carrier
>
> Suggestion:
>
> * @param carrierShape shape of carrier
I see all `@param` tags have double space. If that's deliberate that's ok.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7744
More information about the core-libs-dev
mailing list