RFR(S): 8209702: [lworld] C2 compilation fails with "assert(argument(0)->bottom_type()->isa_ptr()) failed: must be"
Roland Westrelin
rwestrel at redhat.com
Wed Aug 22 15:41:37 UTC 2018
> However, we can call Object.clone() on a value type receiver by making it accessible through
> reflection. C2 will still try to predict the call and speculate on the receiver type but we can
> disable that via -XX:-UseTypeProfile.
I'm confused by this. You're saying it's possible to call Object.clone()
with a value receiver? In that case, don't we need a runtime check that
clone is not called on value receiver?
Roland.
More information about the valhalla-dev
mailing list