On Fri, 11 Sep 2020 02:52:15 GMT, Leonid Mesnik <[email protected]> wrote:
>> I can't see anywhere a safepoint check would occur in that code. This issue
>> was flagged as being in Loom so perhaps the
>> loom code is different and is what introduces the safepoint check? But I
>> agree with Coleen that the best solution is to
>> just use Handles.
>
> It is not loom-specific and reproduced n jdk/jdk with -XX:+CheckUnhandledOops.
What do you think about moving
Handle obj = ThreadService::get_current_contended_monitor(thread);
out of scope of block_object oop visibility?
It is my second patch.
-------------
PR: https://git.openjdk.java.net/jdk/pull/123