hotspot/src/share/vm/memory/genCollectedHeap.cpp
changeset 3581 c84159af60dd
parent 3262 30d1c247fc25
parent 3580 55775b48f5e5
child 3908 24b55ad4c228
--- a/hotspot/src/share/vm/memory/genCollectedHeap.cpp	Mon Jul 27 17:23:52 2009 -0400
+++ b/hotspot/src/share/vm/memory/genCollectedHeap.cpp	Tue Jul 28 13:50:07 2009 -0600
@@ -482,6 +482,10 @@
     for (int i = starting_level; i <= max_level; i++) {
       if (_gens[i]->should_collect(full, size, is_tlab)) {
         if (i == n_gens() - 1) {  // a major collection is to happen
+          if (!complete) {
+            // The full_collections increment was missed above.
+            increment_total_full_collections();
+          }
           pre_full_gc_dump();    // do any pre full gc dumps
         }
         // Timer for individual generations. Last argument is false: no CR