Flattened value type field support for C2

Tobias Hartmann tobias.hartmann at oracle.com
Mon Nov 14 14:21:32 UTC 2016


Hi Roland,

On 14.11.2016 15:10, Roland Westrelin wrote:
> 
> Another question: is a value type field always flattened? Are recursive
> declarations forbidden?

Both yes. The current prototype always flattens value type fields and recursive declarations are forbidden by javac:

/oracle/valhalla/hotspot/test/compiler/valhalla/valuetypes/ValueTypeTestBench.java:61: error: cyclic value type membership involving MyValue1
    final MyValue1 v3;

Best regards,
Tobias

> 
> Roland.
> 


More information about the valhalla-dev mailing list