< prev index next >

src/hotspot/cpu/s390/s390.ad

Print this page
rev 48251 : 8193257: PPC64, s390 implementation for Thread-local handshakes
Reviewed-by:

@@ -917,12 +917,16 @@
     __ reserved_stack_check(Z_R14);
   }
 
   // Touch the polling page.
   if (need_polling) {
+    if (SafepointMechanism::uses_thread_local_poll()) {
+      __ z_lg(Z_R1_scratch, Address(Z_thread, Thread::polling_page_offset()));
+    } else {
     AddressLiteral pp(os::get_polling_page());
     __ load_const_optimized(Z_R1_scratch, pp);
+    }
     // We need to mark the code position where the load from the safepoint
     // polling page was emitted as relocInfo::poll_return_type here.
     __ relocate(relocInfo::poll_return_type);
     __ load_from_polling_page(Z_R1_scratch);
   }
< prev index next >