[foreign-abi] RFR: Transition back to java on safepoint poll slow-path when returning from an optimized native call

Vladimir Ivanov vlivanov at openjdk.java.net
Tue Sep 29 12:00:26 UTC 2020


On Mon, 28 Sep 2020 11:03:57 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> Hi,
> 
> Due to a bug report last week, it was found that threads do not transition back to the _thread_in_java state on the
> safepoint poll slow path after returning from an optimized native call.
> While I was not able to reproduce the crash in question so far, the current code is obviously wrong, since the thread
> state transition back only happens on the fast path.
> This patch rectifies that issue.
> 
> Thanks,
> Jorn

Looks good.

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

PR: https://git.openjdk.java.net/panama-foreign/pull/356


More information about the panama-dev mailing list