[lworld] RFR: 8377803: [lworld] C2: Expansion of value object arguments should only be done for non-osr Parse

Quan Anh Mai qamai at openjdk.org
Sun Feb 15 03:33:31 UTC 2026


On Thu, 12 Feb 2026 14:30:47 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

> Hi,
> 
> We traverse the local slots at the start of parsing and expand all value object parameters. This misses the peculiar case where we are in an OSR parse, and an argument has previously been overwritten with a larval oop. I move the block into `Parse::do_method_entry` so that it is only called for non-osr parse, this also builds the duality with `Parse::load_interpreter_state` which expands value objects in the JVMS for OSR parse.
> 
> This PR also removes `GraphKit::cast_to_non_larval` which was used because we did not track larval-ness in `ciTypeFlow` before. Now it can be removed.
> 
> Please take a look and leave your reviews, thanks a lot.

Thanks for your approval.

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

PR Comment: https://git.openjdk.org/valhalla/pull/2091#issuecomment-3903158440


More information about the valhalla-dev mailing list