--- 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