author | coleenp |
Thu, 01 Dec 2016 14:21:31 -0500 | |
changeset 44738 | 11431bbc9549 |
parent 43420 | a056d6465ef9 |
permissions | -rw-r--r-- |
42065 | 1 |
/* |
2 |
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
|
3 |
* Copyright (c) 2016 SAP SE. All rights reserved. |
|
4 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
5 |
* |
|
6 |
* This code is free software; you can redistribute it and/or modify it |
|
7 |
* under the terms of the GNU General Public License version 2 only, as |
|
8 |
* published by the Free Software Foundation. |
|
9 |
* |
|
10 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
11 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
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 |
#ifndef CPU_S390_VM_GLOBALS_S390_HPP |
|
27 |
#define CPU_S390_VM_GLOBALS_S390_HPP |
|
28 |
||
29 |
#include "utilities/globalDefinitions.hpp" |
|
30 |
#include "utilities/macros.hpp" |
|
31 |
||
32 |
// Sets the default values for platform dependent flags used by the runtime system. |
|
33 |
// (see globals.hpp) |
|
34 |
// Sorted according to sparc. |
|
35 |
||
36 |
// z/Architecture remembers branch targets, so don't share vtables. |
|
37 |
define_pd_global(bool, ShareVtableStubs, false); |
|
38 |
define_pd_global(bool, NeedsDeoptSuspend, false); // Only register window machines need this. |
|
39 |
||
40 |
define_pd_global(bool, ImplicitNullChecks, true); // Generate code for implicit null checks. |
|
41 |
define_pd_global(bool, TrapBasedNullChecks, true); |
|
42 |
define_pd_global(bool, UncommonNullCast, true); // Uncommon-trap NULLs passed to check cast. |
|
43 |
||
44 |
define_pd_global(uintx, CodeCacheSegmentSize, 256); |
|
45 |
// This shall be at least 32 for proper branch target alignment. |
|
46 |
// Ideally, this is 256 (cache line size). This keeps code end data |
|
47 |
// on separate lines. But we reduced it to 64 since 256 increased |
|
48 |
// code size significantly by padding nops between IVC and second UEP. |
|
49 |
define_pd_global(intx, CodeEntryAlignment, 64); |
|
50 |
define_pd_global(intx, OptoLoopAlignment, 2); |
|
51 |
define_pd_global(intx, InlineFrequencyCount, 100); |
|
52 |
define_pd_global(intx, InlineSmallCode, 2000); |
|
53 |
||
54 |
#define DEFAULT_STACK_YELLOW_PAGES (2) |
|
55 |
#define DEFAULT_STACK_RED_PAGES (1) |
|
56 |
// Java_java_net_SocketOutputStream_socketWrite0() uses a 64k buffer on the |
|
57 |
// stack. To pass stack overflow tests we need 20 shadow pages. |
|
58 |
#define DEFAULT_STACK_SHADOW_PAGES (20 DEBUG_ONLY(+2)) |
|
43420
a056d6465ef9
8172049: [s390] Implement "JEP 270: Reserved Stack Areas for Critical Sections".
goetz
parents:
42556
diff
changeset
|
59 |
#define DEFAULT_STACK_RESERVED_PAGES (1) |
42065 | 60 |
|
61 |
#define MIN_STACK_YELLOW_PAGES DEFAULT_STACK_YELLOW_PAGES |
|
62 |
#define MIN_STACK_RED_PAGES DEFAULT_STACK_RED_PAGES |
|
63 |
#define MIN_STACK_SHADOW_PAGES DEFAULT_STACK_SHADOW_PAGES |
|
64 |
#define MIN_STACK_RESERVED_PAGES (0) |
|
65 |
||
66 |
define_pd_global(intx, StackYellowPages, DEFAULT_STACK_YELLOW_PAGES); |
|
67 |
define_pd_global(intx, StackRedPages, DEFAULT_STACK_RED_PAGES); |
|
68 |
define_pd_global(intx, StackShadowPages, DEFAULT_STACK_SHADOW_PAGES); |
|
69 |
define_pd_global(intx, StackReservedPages, DEFAULT_STACK_RESERVED_PAGES); |
|
70 |
||
71 |
define_pd_global(bool, RewriteBytecodes, true); |
|
72 |
define_pd_global(bool, RewriteFrequentPairs, true); |
|
73 |
||
74 |
define_pd_global(bool, UseMembar, false); |
|
75 |
||
76 |
define_pd_global(bool, PreserveFramePointer, false); |
|
77 |
||
78 |
// GC Ergo Flags |
|
79 |
define_pd_global(size_t, CMSYoungGenPerWorker, 16*M); // Default max size of CMS young gen, per GC worker thread. |
|
80 |
||
81 |
define_pd_global(uintx, TypeProfileLevel, 111); |
|
82 |
||
83 |
define_pd_global(bool, CompactStrings, true); |
|
84 |
||
85 |
// 8146801 (Short Array Allocation): No performance work done here yet. |
|
86 |
define_pd_global(intx, InitArrayShortSize, 1*BytesPerLong); |
|
87 |
||
88 |
#define ARCH_FLAGS(develop, product, diagnostic, experimental, notproduct, range, constraint, writeable) \ |
|
89 |
\ |
|
90 |
/* Reoptimize code-sequences of calls at runtime, e.g. replace an */ \ |
|
91 |
/* indirect call by a direct call. */ \ |
|
92 |
product(bool, ReoptimizeCallSequences, true, \ |
|
93 |
"Reoptimize code-sequences of calls at runtime.") \ |
|
94 |
\ |
|
95 |
product(bool, UseByteReverseInstruction, true, \ |
|
96 |
"Use byte reverse instruction.") \ |
|
97 |
\ |
|
98 |
product(bool, ExpandLoadingBaseDecode, true, "Expand the assembler " \ |
|
99 |
"instruction required to load the base from DecodeN nodes during " \ |
|
100 |
"matching.") \ |
|
101 |
product(bool, ExpandLoadingBaseDecode_NN, true, "Expand the assembler " \ |
|
102 |
"instruction required to load the base from DecodeN_NN nodes " \ |
|
103 |
"during matching.") \ |
|
104 |
product(bool, ExpandLoadingBaseEncode, true, "Expand the assembler " \ |
|
105 |
"instruction required to load the base from EncodeP nodes during " \ |
|
106 |
"matching.") \ |
|
107 |
product(bool, ExpandLoadingBaseEncode_NN, true, "Expand the assembler " \ |
|
108 |
"instruction required to load the base from EncodeP_NN nodes " \ |
|
109 |
"during matching.") \ |
|
110 |
\ |
|
111 |
/* Seems to pay off with 2 pages already. */ \ |
|
112 |
product(size_t, MVCLEThreshold, +2*(4*K), \ |
|
113 |
"Threshold above which page-aligned MVCLE copy/init is used.") \ |
|
114 |
\ |
|
115 |
product(bool, PreferLAoverADD, false, \ |
|
116 |
"Use LA/LAY instructions over ADD instructions (z/Architecture).") \ |
|
117 |
\ |
|
118 |
develop(bool, ZapEmptyStackFields, false, "Write 0x0101... to empty stack" \ |
|
119 |
" fields. Use this to ease stack debugging.") \ |
|
120 |
\ |
|
121 |
product(bool, TraceTraps, false, "Trace all traps the signal handler" \ |
|
122 |
"handles.") |
|
123 |
||
124 |
#endif // CPU_S390_VM_GLOBALS_S390_HPP |