42664
|
1 |
/*
|
|
2 |
* Copyright (c) 2008, 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 |
#ifndef CPU_ARM_VM_GLOBALS_ARM_HPP
|
|
26 |
#define CPU_ARM_VM_GLOBALS_ARM_HPP
|
|
27 |
|
|
28 |
//
|
|
29 |
// Sets the default values for platform dependent flags used by the runtime system.
|
|
30 |
// (see globals.hpp)
|
|
31 |
//
|
|
32 |
|
|
33 |
define_pd_global(bool, ShareVtableStubs, true);
|
|
34 |
|
|
35 |
define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks
|
|
36 |
define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs past to check cast
|
|
37 |
define_pd_global(bool, TrapBasedNullChecks, false); // Not needed
|
|
38 |
|
|
39 |
define_pd_global(uintx, CodeCacheSegmentSize, 64 TIERED_ONLY(+64)); // Tiered compilation has large code-entry alignment.
|
|
40 |
define_pd_global(intx, CodeEntryAlignment, 16);
|
|
41 |
define_pd_global(intx, OptoLoopAlignment, 16);
|
|
42 |
|
|
43 |
define_pd_global(bool, NeedsDeoptSuspend, false); // only register window machines need this
|
|
44 |
|
|
45 |
#define DEFAULT_STACK_YELLOW_PAGES (2)
|
|
46 |
#define DEFAULT_STACK_RED_PAGES (1)
|
|
47 |
#define DEFAULT_STACK_SHADOW_PAGES (5 DEBUG_ONLY(+1))
|
|
48 |
#define DEFAULT_STACK_RESERVED_PAGES (0)
|
|
49 |
|
|
50 |
#define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES
|
|
51 |
#define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES
|
|
52 |
#define MIN_STACK_SHADOW_PAGES DEFAULT_STACK_SHADOW_PAGES
|
|
53 |
#define MIN_STACK_RESERVED_PAGES (0)
|
|
54 |
|
|
55 |
define_pd_global(intx, StackYellowPages, DEFAULT_STACK_YELLOW_PAGES);
|
|
56 |
define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES);
|
|
57 |
define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES);
|
|
58 |
define_pd_global(intx, StackReservedPages, DEFAULT_STACK_RESERVED_PAGES);
|
|
59 |
|
|
60 |
define_pd_global(intx, InlineFrequencyCount, 50);
|
|
61 |
#if defined(COMPILER1) || defined(COMPILER2)
|
|
62 |
define_pd_global(intx, InlineSmallCode, 1500);
|
|
63 |
#endif
|
|
64 |
|
|
65 |
define_pd_global(bool, RewriteBytecodes, true);
|
|
66 |
define_pd_global(bool, RewriteFrequentPairs, true);
|
|
67 |
|
|
68 |
define_pd_global(bool, UseMembar, true);
|
|
69 |
|
|
70 |
define_pd_global(bool, PreserveFramePointer, false);
|
|
71 |
|
|
72 |
// GC Ergo Flags
|
|
73 |
define_pd_global(size_t, CMSYoungGenPerWorker, 16*M); // default max size of CMS young gen, per GC worker thread
|
|
74 |
|
|
75 |
define_pd_global(uintx, TypeProfileLevel, 0);
|
|
76 |
|
|
77 |
// No performance work done here yet.
|
|
78 |
define_pd_global(bool, CompactStrings, false);
|
|
79 |
|
|
80 |
define_pd_global(intx, InitArrayShortSize, 8*BytesPerLong);
|
|
81 |
|
|
82 |
#define ARCH_FLAGS(develop, \
|
|
83 |
product, \
|
|
84 |
diagnostic, \
|
|
85 |
experimental, \
|
|
86 |
notproduct, \
|
|
87 |
range, \
|
|
88 |
constraint, \
|
|
89 |
writeable) \
|
|
90 |
\
|
|
91 |
develop(bool, VerifyInterpreterStackTop, false, \
|
|
92 |
"Verify interpreter stack top at every stack expansion (AArch64 only)") \
|
|
93 |
\
|
|
94 |
develop(bool, ZapHighNonSignificantBits, false, \
|
|
95 |
"Zap high non-significant bits of values (AArch64 only)") \
|
|
96 |
\
|
|
97 |
|
|
98 |
#endif // CPU_ARM_VM_GLOBALS_ARM_HPP
|