1 /*
2 * Copyright (c) 2001, 2015, 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/parallel/parallelScavengeHeap.hpp"
27 #include "gc/parallel/psAdaptiveSizePolicy.hpp"
28 #include "gc/parallel/psMarkSweepDecorator.hpp"
29 #include "gc/parallel/psOldGen.hpp"
30 #include "gc/shared/cardTableModRefBS.hpp"
31 #include "gc/shared/gcLocker.inline.hpp"
32 #include "gc/shared/spaceDecorator.hpp"
33 #include "logging/log.hpp"
34 #include "oops/oop.inline.hpp"
35 #include "runtime/java.hpp"
36
37 inline const char* PSOldGen::select_name() {
38 return UseParallelOldGC ? "ParOldGen" : "PSOldGen";
39 }
40
41 PSOldGen::PSOldGen(ReservedSpace rs, size_t alignment,
42 size_t initial_size, 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)
|
1 /*
2 * Copyright (c) 2001, 2016, 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/parallel/objectStartArray.inline.hpp"
27 #include "gc/parallel/parallelScavengeHeap.hpp"
28 #include "gc/parallel/psAdaptiveSizePolicy.hpp"
29 #include "gc/parallel/psMarkSweepDecorator.hpp"
30 #include "gc/parallel/psOldGen.hpp"
31 #include "gc/shared/cardTableModRefBS.hpp"
32 #include "gc/shared/gcLocker.inline.hpp"
33 #include "gc/shared/spaceDecorator.hpp"
34 #include "logging/log.hpp"
35 #include "oops/oop.inline.hpp"
36 #include "runtime/java.hpp"
37
38 inline const char* PSOldGen::select_name() {
39 return UseParallelOldGC ? "ParOldGen" : "PSOldGen";
40 }
41
42 PSOldGen::PSOldGen(ReservedSpace rs, size_t alignment,
43 size_t initial_size, size_t min_size, size_t max_size,
44 const char* perf_data_name, int level):
45 _name(select_name()), _init_gen_size(initial_size), _min_gen_size(min_size),
46 _max_gen_size(max_size)
|