RFR: C2: fix call with __Value arguments

Tobias Hartmann tobias.hartmann at oracle.com
Mon Jun 19 05:59:08 UTC 2017


Hi Roland,

On 16.06.2017 17:57, Roland Westrelin wrote:
> http://cr.openjdk.java.net/~roland/valhalla/__Value_args_cast/webrev.00/

This looks good to me but shouldn't we also cast the receiver?

Were you able to write a test for this? If so, it would be good to add it to our test bench.

> I suppose if we hit the opposite situation (call site's
> signature uses a specific value type, callee uses __Value) we need a
> reference to the value and have to store it to memory. This mirrors what
> happens without value types where C2 casts arguments.

Do you know how this can happen?

Thanks,
Tobias


More information about the valhalla-dev mailing list