On Thu, 26 Feb 2026 15:33:40 GMT, Tobias Hartmann <[email protected]> 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

Reply via email to