src/hotspot/share/runtime/thread.hpp
changeset 57603 f9d9bed12d1a
parent 57501 a297f7ab46c3
child 57699 4aea554692aa
--- a/src/hotspot/share/runtime/thread.hpp	Wed Jul 31 06:37:13 2019 -0400
+++ b/src/hotspot/share/runtime/thread.hpp	Wed Jul 31 06:54:50 2019 -0400
@@ -371,14 +371,15 @@
 
  private:
 
-  // debug support for checking if code does allow safepoints or not
-  // GC points in the VM can happen because of allocation, invoking a VM operation, or blocking on
+  // Debug support for checking if code allows safepoints or not.
+  // Safepoints in the VM can happen because of allocation, invoking a VM operation, or blocking on
   // mutex, or blocking on an object synchronizer (Java locking).
-  // If !allow_safepoint(), then an assertion failure will happen in any of the above cases
+  // If _no_safepoint_count is non-zero, then an assertion failure will happen in any of
+  // the above cases.
   //
   // The class NoSafepointVerifier is used to set this counter.
   //
-  NOT_PRODUCT(int _allow_safepoint_count;)      // If 0, thread allow a safepoint to happen
+  NOT_PRODUCT(int _no_safepoint_count;)         // If 0, thread allow a safepoint to happen
 
   // Used by SkipGCALot class.
   NOT_PRODUCT(bool _skip_gcalot;)               // Should we elide gc-a-lot?