1 /* 2 * Copyright (c) 2001, 2009, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 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 "incls/_precompiled.incl" 26 # include "incls/_psOldGen.cpp.incl" 27 28 inline const char* PSOldGen::select_name() { 29 return UseParallelOldGC ? "ParOldGen" : "PSOldGen"; 30 } 31 32 PSOldGen::PSOldGen(ReservedSpace rs, size_t alignment, 33 size_t initial_size, size_t min_size, size_t max_size, 34 const char* perf_data_name, int level): 35 _name(select_name()), _init_gen_size(initial_size), _min_gen_size(min_size), 36 _max_gen_size(max_size) 37 { 38 initialize(rs, alignment, perf_data_name, level); 39 } 40 41 PSOldGen::PSOldGen(size_t initial_size, 42 size_t min_size, size_t max_size, 43 const char* perf_data_name, int level): 44 _name(select_name()), _init_gen_size(initial_size), _min_gen_size(min_size), 45 _max_gen_size(max_size) 46 {} | 1 /* 2 * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 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/parallelScavengeHeap.hpp" 27 #include "gc_implementation/parallelScavenge/psAdaptiveSizePolicy.hpp" 28 #include "gc_implementation/parallelScavenge/psMarkSweepDecorator.hpp" 29 #include "gc_implementation/parallelScavenge/psOldGen.hpp" 30 #include "gc_implementation/shared/spaceDecorator.hpp" 31 #include "memory/cardTableModRefBS.hpp" 32 #include "memory/gcLocker.inline.hpp" 33 #include "oops/oop.inline.hpp" 34 #include "runtime/java.hpp" 35 36 inline const char* PSOldGen::select_name() { 37 return UseParallelOldGC ? "ParOldGen" : "PSOldGen"; 38 } 39 40 PSOldGen::PSOldGen(ReservedSpace rs, size_t alignment, 41 size_t initial_size, size_t min_size, size_t max_size, 42 const char* perf_data_name, int level): 43 _name(select_name()), _init_gen_size(initial_size), _min_gen_size(min_size), 44 _max_gen_size(max_size) 45 { 46 initialize(rs, alignment, perf_data_name, level); 47 } 48 49 PSOldGen::PSOldGen(size_t initial_size, 50 size_t min_size, size_t max_size, 51 const char* perf_data_name, int level): 52 _name(select_name()), _init_gen_size(initial_size), _min_gen_size(min_size), 53 _max_gen_size(max_size) 54 {} |