globals_zero.hpp revision 8699:1c0343a9139a
1193326Sed/*
2193326Sed * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
3193326Sed * Copyright 2007, 2008, 2009, 2010, 2011 Red Hat, Inc.
4193326Sed * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5193326Sed *
6193326Sed * This code is free software; you can redistribute it and/or modify it
7193326Sed * under the terms of the GNU General Public License version 2 only, as
8193326Sed * published by the Free Software Foundation.
9193326Sed *
10193326Sed * This code is distributed in the hope that it will be useful, but WITHOUT
11193326Sed * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12193326Sed * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13193326Sed * version 2 for more details (a copy is included in the LICENSE file that
14193326Sed * accompanied this code).
15193326Sed *
16193326Sed * You should have received a copy of the GNU General Public License version
17193326Sed * 2 along with this work; if not, write to the Free Software Foundation,
18193326Sed * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19193326Sed *
20193326Sed * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21193326Sed * or visit www.oracle.com if you need additional information or have any
22193326Sed * questions.
23296417Sdim *
24193326Sed */
25193326Sed
26193326Sed#ifndef CPU_ZERO_VM_GLOBALS_ZERO_HPP
27193326Sed#define CPU_ZERO_VM_GLOBALS_ZERO_HPP
28193326Sed
29205408Srdivacky#include "utilities/globalDefinitions.hpp"
30193326Sed#include "utilities/macros.hpp"
31193326Sed
32193326Sed// Set the default values for platform dependent flags used by the
33309124Sdim// runtime system.  See globals.hpp for details of what they do.
34309124Sdim
35309124Sdimdefine_pd_global(bool,  ConvertSleepToYield,  true);
36276479Sdimdefine_pd_global(bool,  ShareVtableStubs,     true);
37276479Sdimdefine_pd_global(bool,  NeedsDeoptSuspend,    false);
38218893Sdim
39193326Seddefine_pd_global(bool,  ImplicitNullChecks,   true);
40218893Sdimdefine_pd_global(bool,  TrapBasedNullChecks,  false);
41193326Seddefine_pd_global(bool,  UncommonNullCast,     true);
42288943Sdim
43296417Sdimdefine_pd_global(intx,  CodeEntryAlignment,   32);
44288943Sdimdefine_pd_global(intx,  OptoLoopAlignment,    16);
45309124Sdimdefine_pd_global(intx,  InlineFrequencyCount, 100);
46309124Sdimdefine_pd_global(intx,  InlineSmallCode,      1000 );
47309124Sdim
48309124Sdimdefine_pd_global(intx,  StackYellowPages,     2);
49314564Sdimdefine_pd_global(intx,  StackRedPages,        1);
50309124Sdimdefine_pd_global(intx,  StackShadowPages,     5 LP64_ONLY(+1) DEBUG_ONLY(+3));
51309124Sdim
52309124Sdimdefine_pd_global(bool,  RewriteBytecodes,     true);
53309124Sdimdefine_pd_global(bool,  RewriteFrequentPairs, true);
54309124Sdim
55309124Sdimdefine_pd_global(bool,  UseMembar,            true);
56309124Sdim
57309124Sdim// GC Ergo Flags
58309124Sdimdefine_pd_global(size_t, CMSYoungGenPerWorker, 16*M);  // default max size of CMS young gen, per GC worker thread
59309124Sdim
60288943Sdimdefine_pd_global(uintx, TypeProfileLevel, 0);
61249423Sdim
62193326Seddefine_pd_global(bool, PreserveFramePointer, false);
63249423Sdim
64249423Sdim#define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct, range, constraint)  \
65193326Sed                                                                            \
66193326Sed  product(bool, UseFastEmptyMethods, true,                                  \
67309124Sdim          "Use fast method entry code for empty methods")                   \
68309124Sdim                                                                            \
69309124Sdim  product(bool, UseFastAccessorMethods, true,                               \
70309124Sdim          "Use fast method entry code for accessor methods")                \
71309124Sdim                                                                            \
72314564Sdim
73309124Sdim#endif // CPU_ZERO_VM_GLOBALS_ZERO_HPP
74309124Sdim