Proposal: java.lang.runtime.Carrier
Kasper Nielsen
kasperni at gmail.com
Thu Mar 3 18:36:45 UTC 2022
Looks good.
I don't know about the name though. Are there still plans for adding a
java.util.concurrent.Carrier type?
https://mail.openjdk.java.net/pipermail/loom-dev/2020-March/001122.html
What about java.lang.runtime.ObjectShapes instead?
Would fit in with ObjectMethods.
/Kasper
On Thu, 3 Mar 2022 at 13:59, Jim Laskey <james.laskey at oracle.com> 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.
>
More information about the amber-spec-observers
mailing list