File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed
src/hotspot/share/runtime Expand file tree Collapse file tree 2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -231,7 +231,6 @@ class ThreadBlockInVM : public ThreadStateTransition {
231
231
}
232
232
~ThreadBlockInVM () {
233
233
trans (_thread_blocked, _thread_in_vm);
234
- OrderAccess::cross_modify_fence ();
235
234
// We don't need to clear_walkable because it will happen automagically when we return to java
236
235
}
237
236
};
@@ -281,7 +280,6 @@ class ThreadBlockInVMWithDeadlockCheck : public ThreadStateTransition {
281
280
}
282
281
283
282
_thread->set_thread_state (_thread_in_vm);
284
- OrderAccess::cross_modify_fence ();
285
283
}
286
284
};
287
285
Original file line number Diff line number Diff line change @@ -2605,9 +2605,6 @@ void JavaThread::java_suspend_self_with_safepoint_check() {
2605
2605
set_thread_state_fence (state);
2606
2606
} while (is_external_suspend ());
2607
2607
2608
- // Since we are not using a regular thread-state transition helper here,
2609
- // we must manually emit the instruction barrier after leaving a safe state.
2610
- OrderAccess::cross_modify_fence ();
2611
2608
if (state != _thread_in_native) {
2612
2609
SafepointMechanism::process_if_requested (this );
2613
2610
}
You can’t perform that action at this time.
0 commit comments