RFR: 8262443: GenerateOopMap::do_interpretation can spin for a long time.

David Holmes dholmes at openjdk.java.net
Mon Mar 1 02:42:39 UTC 2021


On Fri, 26 Feb 2021 08:50:38 GMT, Robbin Ehn <rehn at openjdk.org> wrote:

> With Safepoint/Handshake timeout enabled in rare cases this methods spins for a long time, blocking safepoints/handshakes, so timeout (with a long delay) is triggered.
> 
> In some cases we are in native while executing this method and in some in vm.
> That's why there is an check for state in vm.
> 
> Tested with other changes in t-1-7 this specific case of timeout is no longer an issue.
> This change-set passes T1 stand alone.

Looks good. Minor request below.

Thanks,
David

src/hotspot/share/oops/generateOopMap.cpp line 918:

> 916:         ThreadBlockInVM tbivm(thread->as_Java_thread());
> 917:       }
> 918:     }

Can you add a comment as to why this is necessary please.

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

Marked as reviewed by dholmes (Reviewer).

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


More information about the hotspot-dev mailing list