[lworld] RFR: Implement code generation support for value classes

Maurizio Cimadamore mcimadamore at openjdk.java.net
Tue Jan 18 14:12:02 UTC 2022


On Mon, 17 Jan 2022 10:37:57 GMT, Srikanth Adayapalam <sadayapalam at openjdk.org> wrote:

> Push code code generation tactics and strategies from B3 to B2 classes.

src/jdk.compiler/share/classes/com/sun/tools/javac/code/Type.java line 1333:

> 1331:         @Override
> 1332:         public boolean isValueClass() {
> 1333:             return !isReferenceProjection() && tsym != null && tsym.isValueClass();

The new test for `isReferenceProjections` does not match my understanding of what a "value class" is. E.g. I believe a value class doesn't really have a reference projection (or, rather, doing vclass.ref is the same as doing String.ref - it's the identity). So it's not clear to me the rationale behind the new check.

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

PR: https://git.openjdk.java.net/valhalla/pull/604



More information about the valhalla-dev mailing list