< prev index next >

src/hotspot/share/gc/shared/collectedHeap.hpp

Print this page
rev 60422 : [mq]: 8248401-ayang-review

@@ -111,11 +111,13 @@
 
   // Used for filler objects (static, but initialized in ctor).
   static size_t _filler_array_max_size;
 
   // Last time the whole heap has been examined in support of RMI
-  // MaxObjectInspectionAge in ns.
+  // MaxObjectInspectionAge.
+  // This timestamp must be monotonically non-decreasing to avoid
+  // time-warp warnings.
   jlong _last_whole_heap_examined_time_ns;
 
   unsigned int _total_collections;          // ... started
   unsigned int _total_full_collections;     // ... started
   NOT_PRODUCT(volatile size_t _promotion_failure_alot_count;)

@@ -410,15 +412,15 @@
 
   // Perform any cleanup actions necessary before allowing a verification.
   virtual void prepare_for_verify() = 0;
 
   // Returns the longest time (in ms) that has elapsed since the last
-  // time that any part of the heap was examined by a garbage collection.
+  // time that the whole heap has been examined by a garbage collection.
   jlong millis_since_last_whole_heap_examined();
   // GC should call this when the next whole heap analysis has completed to
   // satisfy above requirement.
-  void next_whole_heap_examined();
+  void record_whole_heap_examined_timestamp();
 
  private:
   // Generate any dumps preceding or following a full gc
   void full_gc_dump(GCTimer* timer, bool before);
 
< prev index next >