Anonymous value classes

Brian Goetz brian.goetz at oracle.com
Fri Jun 3 17:59:11 UTC 2022



On 6/3/2022 1:39 PM, Remi Forax wrote:
>
>
> ------------------------------------------------------------------------
>
>     *From: *"Brian Goetz" <brian.goetz at oracle.com>
>     *To: *"daniel smith" <daniel.smith at oracle.com>,
>     "valhalla-spec-experts" <valhalla-spec-experts at openjdk.java.net>
>     *Sent: *Friday, June 3, 2022 6:21:26 PM
>     *Subject: *Re: Anonymous value classes
>
>     There is no chance to get any calling-convention optimization
>     here, since the concrete class name will not show up in any method
>     descriptor (or preload attribute).  There is no chance to get any
>     heap flattening here, since the concrete class name will not show
>     up in any field descriptor or `newarray` operand.
>
>
> Nope, anonymous classes are anonymous only for Java not in the 
> bytecode, by example

OK, correction: such a vanishingly microscopic chance as to be 
completely ignorable :)



More information about the valhalla-spec-observers mailing list