8221554: aarch64 cross-modifying code

Reviewed-by: rehn, aph
This commit is contained in:
Alan Hayward 2020-11-19 12:27:22 +00:00 committed by Nick Gasson
parent f626ed6a43
commit d183fc7faa
26 changed files with 134 additions and 49 deletions

View file

@ -381,6 +381,14 @@ void SafepointSynchronize::begin() {
assert(_waiting_to_block == 0, "No thread should be running");
#ifndef PRODUCT
// Mark all threads
if (VerifyCrossModifyFence) {
JavaThreadIteratorWithHandle jtiwh;
for (; JavaThread *cur = jtiwh.next(); ) {
cur->set_requires_cross_modify_fence(true);
}
}
if (safepoint_limit_time != 0) {
jlong current_time = os::javaTimeNanos();
if (safepoint_limit_time < current_time) {