mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8221554: aarch64 cross-modifying code
Reviewed-by: rehn, aph
This commit is contained in:
parent
f626ed6a43
commit
d183fc7faa
26 changed files with 134 additions and 49 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue