RFR: 8273143: Transition to _thread_in_vm when handling a polling page exception [v2]

Richard Reingruber rrich at openjdk.java.net
Wed Jan 12 11:01:33 UTC 2022


On Tue, 11 Jan 2022 19:45:49 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:

> Now we can use ThreadBlockInVM in wait_for_object_deoptimization(), but unlike
> the other uses, in here we need to allow suspends since we could be going back
> to Java.

Thanks for the explanation. I almost made the mistake of thinking it was ok not
to allow suspends in wait_for_object_deoptimization() but not allowing suspends
on the suspendee side of course does not mean a suspender cannot complete a
suspend request while the suspendee thread is blocked for object
deoptimization. This is obvious to me now but somehow I was really confused by
the name "allow_suspend".

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

PR: https://git.openjdk.java.net/jdk/pull/7009


More information about the hotspot-runtime-dev mailing list