src/share/vm/gc_implementation/parallelScavenge/generationSizer.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/gc_implementation/parallelScavenge

src/share/vm/gc_implementation/parallelScavenge/generationSizer.cpp

Print this page
rev 6362 : 8042298: Remove the names gen0 and gen1 from the GC code
Summary: Renamed gen0 and gen1 to young and old throughout the GC code.
Reviewed-by:


  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc_implementation/parallelScavenge/generationSizer.hpp"
  27 #include "memory/collectorPolicy.hpp"
  28 
  29 void GenerationSizer::trace_gen_sizes(const char* const str) {
  30   if (TracePageSizes) {
  31     tty->print_cr("%s:  " SIZE_FORMAT "," SIZE_FORMAT " "
  32                   SIZE_FORMAT "," SIZE_FORMAT " "
  33                   SIZE_FORMAT,
  34                   str,
  35                   _min_gen1_size / K, _max_gen1_size / K,
  36                   _min_gen0_size / K, _max_gen0_size / K,
  37                   _max_heap_byte_size / K);
  38   }
  39 }
  40 
  41 void GenerationSizer::initialize_alignments() {
  42   _space_alignment = _gen_alignment = default_gen_alignment();
  43   _heap_alignment = compute_heap_alignment();
  44 }
  45 
  46 void GenerationSizer::initialize_flags() {
  47   // Do basic sizing work
  48   GenCollectorPolicy::initialize_flags();
  49 
  50   assert(UseSerialGC ||
  51           !FLAG_IS_DEFAULT(ParallelGCThreads) ||
  52           (ParallelGCThreads > 0),
  53          "ParallelGCThreads should be set before flag initialization");
  54 
  55   // The survivor ratio's are calculated "raw", unlike the
  56   // default gc, which adds 2 to the ratio value. We need to




  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc_implementation/parallelScavenge/generationSizer.hpp"
  27 #include "memory/collectorPolicy.hpp"
  28 
  29 void GenerationSizer::trace_gen_sizes(const char* const str) {
  30   if (TracePageSizes) {
  31     tty->print_cr("%s:  " SIZE_FORMAT "," SIZE_FORMAT " "
  32                   SIZE_FORMAT "," SIZE_FORMAT " "
  33                   SIZE_FORMAT,
  34                   str,
  35                   _min_old_size / K, _max_old_size / K,
  36                   _min_young_size / K, _max_young_size / K,
  37                   _max_heap_byte_size / K);
  38   }
  39 }
  40 
  41 void GenerationSizer::initialize_alignments() {
  42   _space_alignment = _gen_alignment = default_gen_alignment();
  43   _heap_alignment = compute_heap_alignment();
  44 }
  45 
  46 void GenerationSizer::initialize_flags() {
  47   // Do basic sizing work
  48   GenCollectorPolicy::initialize_flags();
  49 
  50   assert(UseSerialGC ||
  51           !FLAG_IS_DEFAULT(ParallelGCThreads) ||
  52           (ParallelGCThreads > 0),
  53          "ParallelGCThreads should be set before flag initialization");
  54 
  55   // The survivor ratio's are calculated "raw", unlike the
  56   // default gc, which adds 2 to the ratio value. We need to


src/share/vm/gc_implementation/parallelScavenge/generationSizer.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File