[lworld] RFR: 8378167: [lworld] C2: "unused buffer allocation" in do_late_inline_helper
Quan Anh Mai
qamai at openjdk.org
Thu Feb 26 15:55:12 UTC 2026
On Thu, 26 Feb 2026 15:33:40 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:
> When handling a scalarized return from an inlined method handle call in C2, we assert that we always make use of the buffer that we pre-allocated before the call. The assert is too strong because we could stop parsing in the callee due to an uncommon trap. I added a corresponding test that triggers this because we trap in the callee due to always throwing an exception.
>
> Thanks,
> Tobias
test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestValueConstruction.java line 1729:
> 1727: }
> 1728:
> 1729: // Method handle with a scalarized return that will always throw an exception
Seems more like an issue with inlining than about `ValueConstruction` to me. Also, will a normal method and `AlwaysIncrementalInline` be enough?
-------------
PR Review Comment: https://git.openjdk.org/valhalla/pull/2177#discussion_r2859820885
More information about the valhalla-dev
mailing list