Anonymous value classes
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Fri Jun 3 18:18:44 UTC 2022
And `var` ?
(but I agree this feels a niche)
Maurizio
On 03/06/2022 18:59, Brian Goetz wrote:
>
>
> 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 :)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/valhalla-spec-experts/attachments/20220603/88dc8cd0/attachment.htm>
More information about the valhalla-spec-experts
mailing list