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"
156 #endif
157 #ifdef TARGET_OS_FAMILY_bsd
158 # include "c2_globals_bsd.hpp"
159 #endif
160 #endif
161 #ifdef SHARK
162 #ifdef TARGET_ARCH_zero
163 # include "shark_globals_zero.hpp"
164 #endif
3934 product(ccstr, DumpLoadedClassList, NULL, \
3935 "Dump the names all loaded classes, that could be stored into " \
3936 "the CDS archive, in the specified file") \
3937 \
3938 product(ccstr, SharedClassListFile, NULL, \
3939 "Override the default CDS class list") \
3940 \
3941 diagnostic(ccstr, SharedArchiveFile, NULL, \
3942 "Override the default location of the CDS archive file") \
3943 \
3944 product(ccstr, ExtraSharedClassListFile, NULL, \
3945 "Extra classlist for building the CDS archive file") \
3946 \
3947 experimental(size_t, ArrayAllocatorMallocLimit, \
3948 SOLARIS_ONLY(64*K) NOT_SOLARIS((size_t)-1), \
3949 "Allocation less than this value will be allocated " \
3950 "using malloc. Larger allocations will use mmap.") \
3951 \
3952 experimental(bool, AlwaysAtomicAccesses, false, \
3953 "Accesses to all variables should always be atomic") \
3954 \
3955 product(bool, EnableTracing, false, \
3956 "Enable event-based tracing") \
3957 \
3958 product(bool, UseLockedTracing, false, \
3959 "Use locked-tracing when doing event-based tracing")
3960
3961 /*
3962 * Macros for factoring of globals
3963 */
3964
3965 // Interface macros
3966 #define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
3967 #define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name;
3968 #define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name;
3969 #define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name;
3970 #define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name;
3971 #define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name;
3972 #ifdef PRODUCT
3973 #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type CONST_##name; const type name = value;
|
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_ARCH_aarch64
56 # include "globals_aarch64.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_sparc
77 # include "globals_linux_sparc.hpp"
78 #endif
79 #ifdef TARGET_OS_ARCH_linux_zero
80 # include "globals_linux_zero.hpp"
81 #endif
82 #ifdef TARGET_OS_ARCH_solaris_x86
83 # include "globals_solaris_x86.hpp"
84 #endif
85 #ifdef TARGET_OS_ARCH_solaris_sparc
86 # include "globals_solaris_sparc.hpp"
87 #endif
88 #ifdef TARGET_OS_ARCH_windows_x86
89 # include "globals_windows_x86.hpp"
90 #endif
91 #ifdef TARGET_OS_ARCH_linux_arm
92 # include "globals_linux_arm.hpp"
93 #endif
94 #ifdef TARGET_OS_ARCH_linux_ppc
95 # include "globals_linux_ppc.hpp"
96 #endif
97 #ifdef TARGET_OS_ARCH_linux_aarch64
98 # include "globals_linux_aarch64.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_sparc
114 # include "c1_globals_sparc.hpp"
115 #endif
116 #ifdef TARGET_ARCH_arm
117 # include "c1_globals_arm.hpp"
118 #endif
119 #ifdef TARGET_ARCH_aarch64
120 # include "c1_globals_aarch64.hpp"
121 #endif
122 #ifdef TARGET_OS_FAMILY_linux
123 # include "c1_globals_linux.hpp"
124 #endif
125 #ifdef TARGET_OS_FAMILY_solaris
126 # include "c1_globals_solaris.hpp"
127 #endif
128 #ifdef TARGET_OS_FAMILY_windows
129 # include "c1_globals_windows.hpp"
130 #endif
131 #ifdef TARGET_OS_FAMILY_aix
132 # include "c1_globals_aix.hpp"
133 #endif
134 #ifdef TARGET_OS_FAMILY_bsd
135 # include "c1_globals_bsd.hpp"
136 #endif
137 #ifdef TARGET_ARCH_ppc
138 # include "c1_globals_ppc.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_sparc
146 # include "c2_globals_sparc.hpp"
147 #endif
148 #ifdef TARGET_ARCH_arm
149 # include "c2_globals_arm.hpp"
150 #endif
151 #ifdef TARGET_ARCH_ppc
152 # include "c2_globals_ppc.hpp"
153 #endif
154 #ifdef TARGET_ARCH_aarch64
155 # include "c2_globals_aarch64.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"
168 #endif
169 #ifdef TARGET_OS_FAMILY_bsd
170 # include "c2_globals_bsd.hpp"
171 #endif
172 #endif
173 #ifdef SHARK
174 #ifdef TARGET_ARCH_zero
175 # include "shark_globals_zero.hpp"
176 #endif
3946 product(ccstr, DumpLoadedClassList, NULL, \
3947 "Dump the names all loaded classes, that could be stored into " \
3948 "the CDS archive, in the specified file") \
3949 \
3950 product(ccstr, SharedClassListFile, NULL, \
3951 "Override the default CDS class list") \
3952 \
3953 diagnostic(ccstr, SharedArchiveFile, NULL, \
3954 "Override the default location of the CDS archive file") \
3955 \
3956 product(ccstr, ExtraSharedClassListFile, NULL, \
3957 "Extra classlist for building the CDS archive file") \
3958 \
3959 experimental(size_t, ArrayAllocatorMallocLimit, \
3960 SOLARIS_ONLY(64*K) NOT_SOLARIS((size_t)-1), \
3961 "Allocation less than this value will be allocated " \
3962 "using malloc. Larger allocations will use mmap.") \
3963 \
3964 experimental(bool, AlwaysAtomicAccesses, false, \
3965 "Accesses to all variables should always be atomic") \
3966 \
3967 experimental(bool, UseBarriersForVolatile, false, \
3968 "Use explicit memory barriers for volatile accesses") \
3969 \
3970 product(bool, EnableTracing, false, \
3971 "Enable event-based tracing") \
3972 \
3973 product(bool, UseLockedTracing, false, \
3974 "Use locked-tracing when doing event-based tracing")
3975
3976 /*
3977 * Macros for factoring of globals
3978 */
3979
3980 // Interface macros
3981 #define DECLARE_PRODUCT_FLAG(type, name, value, doc) extern "C" type name;
3982 #define DECLARE_PD_PRODUCT_FLAG(type, name, doc) extern "C" type name;
3983 #define DECLARE_DIAGNOSTIC_FLAG(type, name, value, doc) extern "C" type name;
3984 #define DECLARE_EXPERIMENTAL_FLAG(type, name, value, doc) extern "C" type name;
3985 #define DECLARE_MANAGEABLE_FLAG(type, name, value, doc) extern "C" type name;
3986 #define DECLARE_PRODUCT_RW_FLAG(type, name, value, doc) extern "C" type name;
3987 #ifdef PRODUCT
3988 #define DECLARE_DEVELOPER_FLAG(type, name, value, doc) extern "C" type CONST_##name; const type name = value;
|