< prev index next >

src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp

Print this page
rev 9080 : 8139040: Fix initializations before ShouldNotReachHere() etc. and enable -Wuninitialized on linux.
rev 9081 : imported patch more.patch

@@ -1793,11 +1793,11 @@
     gch->increment_total_full_collections();  // ... starting a collection cycle
     _collection_count_start = gch->total_full_collections();
   }
 
   // Used for PrintGC
-  size_t prev_used;
+  size_t prev_used = 0;
   if (PrintGC && Verbose) {
     prev_used = _cmsGen->used();
   }
 
   // The change of the collection state is normally done at this level;
< prev index next >