diff src/share/vm/memory/genCollectedHeap.cpp @ 20295:3f2894c5052e

8048112: G1 Full GC needs to support the case when the very first region is not available Summary: Refactor preparation for compaction during Full GC so that it lazily initializes the first compaction point. This also avoids problems later when the first region may not be committed. Also reviewed by K. Barrett. Reviewed-by: brutisso
author tschatzl
date Mon, 21 Jul 2014 10:00:31 +0200
parents 2c6ef90f030a
children 439f0d76cff3 4bfc44ba0d19
line wrap: on
line diff
--- a/src/share/vm/memory/genCollectedHeap.cpp	Mon Jul 21 09:59:54 2014 +0200
+++ b/src/share/vm/memory/genCollectedHeap.cpp	Mon Jul 21 10:00:31 2014 +0200
@@ -1099,7 +1099,7 @@
   guarantee(_n_gens = 2, "Wrong number of generations");
   Generation* old_gen = _gens[1];
   // Start by compacting into same gen.
-  CompactPoint cp(old_gen, NULL, NULL);
+  CompactPoint cp(old_gen);
   old_gen->prepare_for_compaction(&cp);
   Generation* young_gen = _gens[0];
   young_gen->prepare_for_compaction(&cp);