mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8188764: Obsolete AssumeMP and then remove all support for non-MP builds
Reviewed-by: mikael, mdoerr, bulasevich, eosterlund
This commit is contained in:
parent
5cfc3bbdd4
commit
a3cd6a1a70
52 changed files with 465 additions and 774 deletions
|
@ -79,17 +79,15 @@ class InterfaceSupport: AllStatic {
|
|||
private:
|
||||
static void serialize_thread_state_internal(JavaThread* thread, bool needs_exception_handler) {
|
||||
// Make sure new state is seen by VM thread
|
||||
if (os::is_MP()) {
|
||||
if (UseMembar) {
|
||||
// Force a fence between the write above and read below
|
||||
OrderAccess::fence();
|
||||
if (UseMembar) {
|
||||
// Force a fence between the write above and read below
|
||||
OrderAccess::fence();
|
||||
} else {
|
||||
// store to serialize page so VM thread can do pseudo remote membar
|
||||
if (needs_exception_handler) {
|
||||
os::write_memory_serialize_page_with_handler(thread);
|
||||
} else {
|
||||
// store to serialize page so VM thread can do pseudo remote membar
|
||||
if (needs_exception_handler) {
|
||||
os::write_memory_serialize_page_with_handler(thread);
|
||||
} else {
|
||||
os::write_memory_serialize_page(thread);
|
||||
}
|
||||
os::write_memory_serialize_page(thread);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue