On Thu, 2 Jul 2026 04:34:08 GMT, David Holmes <[email protected]> wrote:

>> I guess, David is thinking of `PopFrame` which does not allow to return to a 
>> non-Java method.
>> However, it seems that the ForceEarlyReturn<Type> functions do not have this 
>> restriction. I do not remember the exact details, but it seems there is no 
>> problem to early return to non-Java methods in general.
>
> No, I thought it had been mentioned by someone else in our internal 
> discussions that the caller had to be a Java frame and so class-initializers 
> did not have to have any special handling.

Though I will say that it seems very inconsistent that two very similar 
operations - terminate the current frame- would have different constraints in 
this regard.

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2604#discussion_r3510511297

Reply via email to