12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #include "precompiled.hpp"
27 #include "gc/shared/cardTableRS.hpp"
28 #include "gc/shared/gcArguments.hpp"
29 #include "logging/log.hpp"
30 #include "runtime/arguments.hpp"
31 #include "runtime/globals.hpp"
32 #include "runtime/globals_extension.hpp"
33 #include "utilities/defaultStream.hpp"
34 #include "utilities/macros.hpp"
35
36 size_t HeapAlignment = 0;
37 size_t SpaceAlignment = 0;
38
39 void GCArguments::initialize() {
40 if (FullGCALot && FLAG_IS_DEFAULT(MarkSweepAlwaysCompactCount)) {
41 MarkSweepAlwaysCompactCount = 1; // Move objects every gc.
42 }
43
44 if (!UseParallelGC && FLAG_IS_DEFAULT(ScavengeBeforeFullGC)) {
45 FLAG_SET_DEFAULT(ScavengeBeforeFullGC, false);
46 }
47
48 if (GCTimeLimit == 100) {
49 // Turn off gc-overhead-limit-exceeded checks
50 FLAG_SET_DEFAULT(UseGCOverheadLimit, false);
51 }
52
|
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * version 2 for more details (a copy is included in the LICENSE file that
14 * accompanied this code).
15 *
16 * You should have received a copy of the GNU General Public License version
17 * 2 along with this work; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 * or visit www.oracle.com if you need additional information or have any
22 * questions.
23 *
24 */
25
26 #include "precompiled.hpp"
27 #include "gc/shared/cardTableRS.hpp"
28 #include "gc/shared/gcArguments.hpp"
29 #include "logging/log.hpp"
30 #include "runtime/arguments.hpp"
31 #include "runtime/globals.hpp"
32 #include "utilities/defaultStream.hpp"
33 #include "utilities/macros.hpp"
34
35 size_t HeapAlignment = 0;
36 size_t SpaceAlignment = 0;
37
38 void GCArguments::initialize() {
39 if (FullGCALot && FLAG_IS_DEFAULT(MarkSweepAlwaysCompactCount)) {
40 MarkSweepAlwaysCompactCount = 1; // Move objects every gc.
41 }
42
43 if (!UseParallelGC && FLAG_IS_DEFAULT(ScavengeBeforeFullGC)) {
44 FLAG_SET_DEFAULT(ScavengeBeforeFullGC, false);
45 }
46
47 if (GCTimeLimit == 100) {
48 // Turn off gc-overhead-limit-exceeded checks
49 FLAG_SET_DEFAULT(UseGCOverheadLimit, false);
50 }
51
|