hotspot/src/share/vm/memory/generation.hpp
changeset 11251 e29da6b5622b
parent 11247 d6faa02b3802
child 12379 2cf45b79ce3a
--- a/hotspot/src/share/vm/memory/generation.hpp	Fri Dec 16 11:40:00 2011 -0800
+++ b/hotspot/src/share/vm/memory/generation.hpp	Mon Dec 19 10:02:05 2011 -0800
@@ -413,10 +413,13 @@
   // Time (in ms) when we were last collected or now if a collection is
   // in progress.
   virtual jlong time_of_last_gc(jlong now) {
-    // XXX See note in genCollectedHeap::millis_since_last_gc()
+    // Both _time_of_last_gc and now are set using a time source
+    // that guarantees monotonically non-decreasing values provided
+    // the underlying platform provides such a source. So we still
+    // have to guard against non-monotonicity.
     NOT_PRODUCT(
       if (now < _time_of_last_gc) {
-        warning("time warp: %d to %d", _time_of_last_gc, now);
+        warning("time warp: "INT64_FORMAT" to "INT64_FORMAT, _time_of_last_gc, now);
       }
     )
     return _time_of_last_gc;