mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 17:44:40 +02:00
8222231: Clean up interfaceSupport.inline.hpp duplicated code
Reviewed-by: dholmes, pchilanomate
This commit is contained in:
parent
32848d8166
commit
0314bac167
7 changed files with 35 additions and 73 deletions
|
@ -805,9 +805,9 @@ void SafepointSynchronize::block(JavaThread *thread) {
|
|||
|
||||
// This part we can skip if we notice we miss or are in a future safepoint.
|
||||
OrderAccess::storestore();
|
||||
thread->set_thread_state(_thread_blocked);
|
||||
// Load in wait barrier should not float up
|
||||
thread->set_thread_state_fence(_thread_blocked);
|
||||
|
||||
OrderAccess::fence(); // Load in wait barrier should not float up
|
||||
_wait_barrier->wait(static_cast<int>(safepoint_id));
|
||||
assert(_state != _synchronized, "Can't be");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue