Skip to content

Commit f167a71

Browse files
committed
8254264: Remove redundant cross_modify_fence()
Reviewed-by: rehn, dholmes, dcubed
1 parent 44f9271 commit f167a71

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/hotspot/share/runtime/interfaceSupport.inline.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ class ThreadBlockInVM : public ThreadStateTransition {
231231
}
232232
~ThreadBlockInVM() {
233233
trans(_thread_blocked, _thread_in_vm);
234-
OrderAccess::cross_modify_fence();
235234
// We don't need to clear_walkable because it will happen automagically when we return to java
236235
}
237236
};
@@ -281,7 +280,6 @@ class ThreadBlockInVMWithDeadlockCheck : public ThreadStateTransition {
281280
}
282281

283282
_thread->set_thread_state(_thread_in_vm);
284-
OrderAccess::cross_modify_fence();
285283
}
286284
};
287285

src/hotspot/share/runtime/thread.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2605,9 +2605,6 @@ void JavaThread::java_suspend_self_with_safepoint_check() {
26052605
set_thread_state_fence(state);
26062606
} while (is_external_suspend());
26072607

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();
26112608
if (state != _thread_in_native) {
26122609
SafepointMechanism::process_if_requested(this);
26132610
}

0 commit comments

Comments
 (0)