On Wed, 1 Jul 2026 19:33:30 GMT, Serguei Spitsyn <[email protected]> wrote:
>> Are you thinking of PopFrame, which I don't think has ever allowed a pop of >> the top-frame when in a class initializer? > > 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. ------------- PR Review Comment: https://git.openjdk.org/valhalla/pull/2604#discussion_r3510486489
