hotspot/src/share/vm/services/memTrackWorker.hpp
changeset 13300 38485c548c9f
parent 13195 be27e1b6a4b9
child 15104 f5d78994619f
--- a/hotspot/src/share/vm/services/memTrackWorker.hpp	Wed Jul 04 15:55:45 2012 -0400
+++ b/hotspot/src/share/vm/services/memTrackWorker.hpp	Thu Jul 19 09:05:42 2012 -0400
@@ -67,7 +67,7 @@
   NOT_PRODUCT(int _last_gen_in_use;)
 
   inline int generations_in_use() const {
-    return (_tail <= _head ? (_head - _tail + 1) : (MAX_GENERATIONS - (_tail - _head) + 1));
+    return (_tail >= _head ? (_tail - _head + 1) : (MAX_GENERATIONS - (_head - _tail) + 1));
   }
 };