src/hotspot/share/runtime/safepointMechanism.hpp
changeset 50921 7f462e8383f6
parent 47881 0ce0ac68ace7
child 52450 2790da836dc3
--- a/src/hotspot/share/runtime/safepointMechanism.hpp	Mon Jul 02 09:38:20 2018 +0200
+++ b/src/hotspot/share/runtime/safepointMechanism.hpp	Mon Jul 02 11:46:15 2018 +0200
@@ -79,9 +79,13 @@
   // Blocks a thread until safepoint is completed
   static inline void block_if_requested(JavaThread* thread);
 
+  // Caller is responsible for using a memory barrier if needed.
   static inline void arm_local_poll(JavaThread* thread);
   static inline void disarm_local_poll(JavaThread* thread);
 
+  static inline void arm_local_poll_release(JavaThread* thread);
+  static inline void disarm_local_poll_release(JavaThread* thread);
+
   // Setup the selected safepoint mechanism
   static void initialize();
   static void initialize_header(JavaThread* thread);