RFR(S): 8210659: [lworld] ValueTypeNode::load_default_oop() should return constant for known value klass

Tobias Hartmann tobias.hartmann at oracle.com
Fri Sep 21 18:35:53 UTC 2018


Hi Roland,

On 14.09.2018 11:17, Roland Westrelin wrote:
> Could we make that field final and have nothing to do on the compiler
> side?

The problem is that the field is injected into the java mirror and therefore not accessible via
ciInstanceKlass::get_field_by_offset(). Also we need to first fold the other loads to end up with a
constant offset. Here's a patch that implements the transformation:
http://cr.openjdk.java.net/~thartmann/8210756/webrev.00/

Thanks,
Tobias



More information about the valhalla-dev mailing list