--- a/src/hotspot/share/runtime/interfaceSupport.inline.hpp Wed Oct 03 11:43:39 2018 +0530
+++ b/src/hotspot/share/runtime/interfaceSupport.inline.hpp Wed Oct 03 03:41:57 2018 -0400
@@ -79,17 +79,15 @@
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);
}
}
}