23 */
24
25 #ifndef SHARE_VM_RUNTIME_GLOBALS_HPP
26 #define SHARE_VM_RUNTIME_GLOBALS_HPP
27
28 #include "utilities/debug.hpp"
29
30 // use this for flags that are true per default in the tiered build
31 // but false in non-tiered builds, and vice versa
32 #ifdef TIERED
33 #define trueInTiered true
34 #define falseInTiered false
35 #else
36 #define trueInTiered false
37 #define falseInTiered true
38 #endif
39
40 #ifdef TARGET_ARCH_x86
41 # include "globals_x86.hpp"
42 #endif
43 #ifdef TARGET_ARCH_sparc
44 # include "globals_sparc.hpp"
45 #endif
46 #ifdef TARGET_ARCH_zero
47 # include "globals_zero.hpp"
48 #endif
49 #ifdef TARGET_ARCH_arm
50 # include "globals_arm.hpp"
51 #endif
52 #ifdef TARGET_ARCH_ppc
53 # include "globals_ppc.hpp"
54 #endif
55 #ifdef TARGET_OS_FAMILY_linux
56 # include "globals_linux.hpp"
57 #endif
58 #ifdef TARGET_OS_FAMILY_solaris
59 # include "globals_solaris.hpp"
60 #endif
61 #ifdef TARGET_OS_FAMILY_windows
62 # include "globals_windows.hpp"
63 #endif
64 #ifdef TARGET_OS_FAMILY_aix
65 # include "globals_aix.hpp"
66 #endif
67 #ifdef TARGET_OS_FAMILY_bsd
68 # include "globals_bsd.hpp"
69 #endif
70 #ifdef TARGET_OS_ARCH_linux_x86
71 # include "globals_linux_x86.hpp"
72 #endif
73 #ifdef TARGET_OS_ARCH_linux_sparc
74 # include "globals_linux_sparc.hpp"
75 #endif
76 #ifdef TARGET_OS_ARCH_linux_zero
77 # include "globals_linux_zero.hpp"
78 #endif
79 #ifdef TARGET_OS_ARCH_solaris_x86
80 # include "globals_solaris_x86.hpp"
81 #endif
82 #ifdef TARGET_OS_ARCH_solaris_sparc
83 # include "globals_solaris_sparc.hpp"
84 #endif
85 #ifdef TARGET_OS_ARCH_windows_x86
86 # include "globals_windows_x86.hpp"
87 #endif
88 #ifdef TARGET_OS_ARCH_linux_arm
89 # include "globals_linux_arm.hpp"
90 #endif
91 #ifdef TARGET_OS_ARCH_linux_ppc
92 # include "globals_linux_ppc.hpp"
93 #endif
94 #ifdef TARGET_OS_ARCH_aix_ppc
95 # include "globals_aix_ppc.hpp"
96 #endif
97 #ifdef TARGET_OS_ARCH_bsd_x86
98 # include "globals_bsd_x86.hpp"
99 #endif
100 #ifdef TARGET_OS_ARCH_bsd_zero
101 # include "globals_bsd_zero.hpp"
102 #endif
103 #ifdef COMPILER1
104 #ifdef TARGET_ARCH_x86
105 # include "c1_globals_x86.hpp"
106 #endif
107 #ifdef TARGET_ARCH_sparc
108 # include "c1_globals_sparc.hpp"
109 #endif
110 #ifdef TARGET_ARCH_arm
111 # include "c1_globals_arm.hpp"
112 #endif
113 #ifdef TARGET_ARCH_ppc
114 # include "c1_globals_ppc.hpp"
115 #endif
116 #ifdef TARGET_OS_FAMILY_linux
117 # include "c1_globals_linux.hpp"
118 #endif
119 #ifdef TARGET_OS_FAMILY_solaris
120 # include "c1_globals_solaris.hpp"
121 #endif
122 #ifdef TARGET_OS_FAMILY_windows
123 # include "c1_globals_windows.hpp"
124 #endif
125 #ifdef TARGET_OS_FAMILY_aix
126 # include "c1_globals_aix.hpp"
127 #endif
128 #ifdef TARGET_OS_FAMILY_bsd
129 # include "c1_globals_bsd.hpp"
130 #endif
131 #endif
132 #ifdef COMPILER2
133 #ifdef TARGET_ARCH_x86
134 # include "c2_globals_x86.hpp"
135 #endif
136 #ifdef TARGET_ARCH_sparc
137 # include "c2_globals_sparc.hpp"
138 #endif
139 #ifdef TARGET_ARCH_arm
140 # include "c2_globals_arm.hpp"
141 #endif
142 #ifdef TARGET_ARCH_ppc
143 # include "c2_globals_ppc.hpp"
144 #endif
145 #ifdef TARGET_OS_FAMILY_linux
146 # include "c2_globals_linux.hpp"
147 #endif
148 #ifdef TARGET_OS_FAMILY_solaris
149 # include "c2_globals_solaris.hpp"
150 #endif
151 #ifdef TARGET_OS_FAMILY_windows
152 # include "c2_globals_windows.hpp"
153 #endif
154 #ifdef TARGET_OS_FAMILY_aix
155 # include "c2_globals_aix.hpp"
3847 \
3848 product(bool, PrintSharedSpaces, false, \
3849 "Print usage of shared spaces") \
3850 \
3851 product(bool, PrintSharedArchiveAndExit, false, \
3852 "Print shared archive file contents") \
3853 \
3854 product(bool, PrintSharedDictionary, false, \
3855 "If PrintSharedArchiveAndExit is true, also print the shared " \
3856 "dictionary") \
3857 \
3858 product(uintx, SharedReadWriteSize, NOT_LP64(12*M) LP64_ONLY(16*M), \
3859 "Size of read-write space for metadata (in bytes)") \
3860 \
3861 product(uintx, SharedReadOnlySize, NOT_LP64(12*M) LP64_ONLY(16*M), \
3862 "Size of read-only space for metadata (in bytes)") \
3863 \
3864 product(uintx, SharedMiscDataSize, NOT_LP64(2*M) LP64_ONLY(4*M), \
3865 "Size of the shared miscellaneous data area (in bytes)") \
3866 \
3867 product(uintx, SharedMiscCodeSize, 120*K, \
3868 "Size of the shared miscellaneous code area (in bytes)") \
3869 \
3870 product(uintx, SharedBaseAddress, LP64_ONLY(32*G) \
3871 NOT_LP64(LINUX_ONLY(2*G) NOT_LINUX(0)), \
3872 "Address to allocate shared memory region for class data") \
3873 \
3874 diagnostic(bool, EnableInvokeDynamic, true, \
3875 "support JSR 292 (method handles, invokedynamic, " \
3876 "anonymous classes") \
3877 \
3878 diagnostic(bool, IgnoreUnverifiableClassesDuringDump, false, \
3879 "Do not quit -Xshare:dump even if we encounter unverifiable " \
3880 "classes. Just exclude them from the shared dictionary.") \
3881 \
3882 diagnostic(bool, PrintMethodHandleStubs, false, \
3883 "Print generated stub code for method handles") \
3884 \
3885 develop(bool, TraceMethodHandles, false, \
3886 "trace internal method handle operations") \
3887 \
|
23 */
24
25 #ifndef SHARE_VM_RUNTIME_GLOBALS_HPP
26 #define SHARE_VM_RUNTIME_GLOBALS_HPP
27
28 #include "utilities/debug.hpp"
29
30 // use this for flags that are true per default in the tiered build
31 // but false in non-tiered builds, and vice versa
32 #ifdef TIERED
33 #define trueInTiered true
34 #define falseInTiered false
35 #else
36 #define trueInTiered false
37 #define falseInTiered true
38 #endif
39
40 #ifdef TARGET_ARCH_x86
41 # include "globals_x86.hpp"
42 #endif
43 #ifdef TARGET_ARCH_aarch64
44 # include "globals_aarch64.hpp"
45 #endif
46 #ifdef TARGET_ARCH_sparc
47 # include "globals_sparc.hpp"
48 #endif
49 #ifdef TARGET_ARCH_zero
50 # include "globals_zero.hpp"
51 #endif
52 #ifdef TARGET_ARCH_arm
53 # include "globals_arm.hpp"
54 #endif
55 #ifdef TARGET_ARCH_ppc
56 # include "globals_ppc.hpp"
57 #endif
58 #ifdef TARGET_OS_FAMILY_linux
59 # include "globals_linux.hpp"
60 #endif
61 #ifdef TARGET_OS_FAMILY_solaris
62 # include "globals_solaris.hpp"
63 #endif
64 #ifdef TARGET_OS_FAMILY_windows
65 # include "globals_windows.hpp"
66 #endif
67 #ifdef TARGET_OS_FAMILY_aix
68 # include "globals_aix.hpp"
69 #endif
70 #ifdef TARGET_OS_FAMILY_bsd
71 # include "globals_bsd.hpp"
72 #endif
73 #ifdef TARGET_OS_ARCH_linux_x86
74 # include "globals_linux_x86.hpp"
75 #endif
76 #ifdef TARGET_OS_ARCH_linux_aarch64
77 # include "globals_linux_aarch64.hpp"
78 #endif
79 #ifdef TARGET_OS_ARCH_linux_sparc
80 # include "globals_linux_sparc.hpp"
81 #endif
82 #ifdef TARGET_OS_ARCH_linux_zero
83 # include "globals_linux_zero.hpp"
84 #endif
85 #ifdef TARGET_OS_ARCH_solaris_x86
86 # include "globals_solaris_x86.hpp"
87 #endif
88 #ifdef TARGET_OS_ARCH_solaris_sparc
89 # include "globals_solaris_sparc.hpp"
90 #endif
91 #ifdef TARGET_OS_ARCH_windows_x86
92 # include "globals_windows_x86.hpp"
93 #endif
94 #ifdef TARGET_OS_ARCH_linux_arm
95 # include "globals_linux_arm.hpp"
96 #endif
97 #ifdef TARGET_OS_ARCH_linux_ppc
98 # include "globals_linux_ppc.hpp"
99 #endif
100 #ifdef TARGET_OS_ARCH_aix_ppc
101 # include "globals_aix_ppc.hpp"
102 #endif
103 #ifdef TARGET_OS_ARCH_bsd_x86
104 # include "globals_bsd_x86.hpp"
105 #endif
106 #ifdef TARGET_OS_ARCH_bsd_zero
107 # include "globals_bsd_zero.hpp"
108 #endif
109 #ifdef COMPILER1
110 #ifdef TARGET_ARCH_x86
111 # include "c1_globals_x86.hpp"
112 #endif
113 #ifdef TARGET_ARCH_aarch64
114 # include "c1_globals_aarch64.hpp"
115 #endif
116 #ifdef TARGET_ARCH_sparc
117 # include "c1_globals_sparc.hpp"
118 #endif
119 #ifdef TARGET_ARCH_arm
120 # include "c1_globals_arm.hpp"
121 #endif
122 #ifdef TARGET_ARCH_ppc
123 # include "c1_globals_ppc.hpp"
124 #endif
125 #ifdef TARGET_OS_FAMILY_linux
126 # include "c1_globals_linux.hpp"
127 #endif
128 #ifdef TARGET_OS_FAMILY_solaris
129 # include "c1_globals_solaris.hpp"
130 #endif
131 #ifdef TARGET_OS_FAMILY_windows
132 # include "c1_globals_windows.hpp"
133 #endif
134 #ifdef TARGET_OS_FAMILY_aix
135 # include "c1_globals_aix.hpp"
136 #endif
137 #ifdef TARGET_OS_FAMILY_bsd
138 # include "c1_globals_bsd.hpp"
139 #endif
140 #endif
141 #ifdef COMPILER2
142 #ifdef TARGET_ARCH_x86
143 # include "c2_globals_x86.hpp"
144 #endif
145 #ifdef TARGET_ARCH_aarch64
146 # include "c2_globals_aarch64.hpp"
147 #endif
148 #ifdef TARGET_ARCH_sparc
149 # include "c2_globals_sparc.hpp"
150 #endif
151 #ifdef TARGET_ARCH_arm
152 # include "c2_globals_arm.hpp"
153 #endif
154 #ifdef TARGET_ARCH_ppc
155 # include "c2_globals_ppc.hpp"
156 #endif
157 #ifdef TARGET_OS_FAMILY_linux
158 # include "c2_globals_linux.hpp"
159 #endif
160 #ifdef TARGET_OS_FAMILY_solaris
161 # include "c2_globals_solaris.hpp"
162 #endif
163 #ifdef TARGET_OS_FAMILY_windows
164 # include "c2_globals_windows.hpp"
165 #endif
166 #ifdef TARGET_OS_FAMILY_aix
167 # include "c2_globals_aix.hpp"
3859 \
3860 product(bool, PrintSharedSpaces, false, \
3861 "Print usage of shared spaces") \
3862 \
3863 product(bool, PrintSharedArchiveAndExit, false, \
3864 "Print shared archive file contents") \
3865 \
3866 product(bool, PrintSharedDictionary, false, \
3867 "If PrintSharedArchiveAndExit is true, also print the shared " \
3868 "dictionary") \
3869 \
3870 product(uintx, SharedReadWriteSize, NOT_LP64(12*M) LP64_ONLY(16*M), \
3871 "Size of read-write space for metadata (in bytes)") \
3872 \
3873 product(uintx, SharedReadOnlySize, NOT_LP64(12*M) LP64_ONLY(16*M), \
3874 "Size of read-only space for metadata (in bytes)") \
3875 \
3876 product(uintx, SharedMiscDataSize, NOT_LP64(2*M) LP64_ONLY(4*M), \
3877 "Size of the shared miscellaneous data area (in bytes)") \
3878 \
3879 product(uintx, SharedMiscCodeSize, AARCH64_ONLY(192*K) NOT_AARCH64(120*K), \
3880 "Size of the shared miscellaneous code area (in bytes)") \
3881 \
3882 product(uintx, SharedBaseAddress, LP64_ONLY(32*G) \
3883 NOT_LP64(LINUX_ONLY(2*G) NOT_LINUX(0)), \
3884 "Address to allocate shared memory region for class data") \
3885 \
3886 diagnostic(bool, EnableInvokeDynamic, true, \
3887 "support JSR 292 (method handles, invokedynamic, " \
3888 "anonymous classes") \
3889 \
3890 diagnostic(bool, IgnoreUnverifiableClassesDuringDump, false, \
3891 "Do not quit -Xshare:dump even if we encounter unverifiable " \
3892 "classes. Just exclude them from the shared dictionary.") \
3893 \
3894 diagnostic(bool, PrintMethodHandleStubs, false, \
3895 "Print generated stub code for method handles") \
3896 \
3897 develop(bool, TraceMethodHandles, false, \
3898 "trace internal method handle operations") \
3899 \
|