On Thu, 22 Aug 2024 09:09:52 GMT, Markus Grönlund <mgron...@openjdk.org> wrote:

>> Right, that would make sense to me because 
>> `Deoptimization::Action_reinterpret` might also invalidate the nmethod.
>
> The functional requirement I have is that the branch takes an uncommon trap 
> and restarts / re-executes the same method the interpreter, because that 
> version enters the VM where an IllegalStateException is thrown. 
> 
> I don't need the compiled method to be invalidated, only that an attempt that 
> over/underflows (thread-local) restarts in the interpeter for the exception 
> to be thrown. Is Action_none better suited for this purpose?

The pattern of the uncommon trap construct was taken from the precedent in 
LibraryCallKit::inline_profileBoolean().

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20664#discussion_r1726667330

Reply via email to