129 LOG_TAG(numa) \
130 LOG_TAG(objecttagging) \
131 LOG_TAG(obsolete) \
132 LOG_TAG(oldobject) \
133 LOG_TAG(oom) \
134 LOG_TAG(oopmap) \
135 LOG_TAG(oops) \
136 LOG_TAG(oopstorage) \
137 LOG_TAG(os) \
138 LOG_TAG(owner) \
139 LOG_TAG(pagesize) \
140 LOG_TAG(parser) \
141 LOG_TAG(patch) \
142 LOG_TAG(path) \
143 LOG_TAG(perf) \
144 LOG_TAG(periodic) \
145 LOG_TAG(phases) \
146 LOG_TAG(plab) \
147 LOG_TAG(placeholders) \
148 LOG_TAG(preempt) \
149 LOG_TAG(preorder) /* Trace all classes loaded in order referenced (not loaded) */ \
150 LOG_TAG(preview) /* Trace loading of preview feature types */ \
151 LOG_TAG(promotion) \
152 LOG_TAG(protectiondomain) /* "Trace protection domain verification" */ \
153 LOG_TAG(ptrqueue) \
154 LOG_TAG(purge) \
155 LOG_TAG(record) \
156 LOG_TAG(redefine) \
157 LOG_TAG(ref) \
158 LOG_TAG(refine) \
159 LOG_TAG(region) \
160 LOG_TAG(reloc) \
161 LOG_TAG(remset) \
162 LOG_TAG(resolve) \
163 LOG_TAG(safepoint) \
164 LOG_TAG(sampling) \
165 LOG_TAG(scavenge) \
166 LOG_TAG(sealed) \
167 LOG_TAG(setting) \
168 LOG_TAG(smr) \
180 LOG_TAG(stringtable) \
181 LOG_TAG(subclass) \
182 LOG_TAG(survivor) \
183 LOG_TAG(suspend) \
184 LOG_TAG(sweep) \
185 LOG_TAG(symboltable) \
186 LOG_TAG(system) \
187 LOG_TAG(table) \
188 LOG_TAG(task) \
189 DEBUG_ONLY(LOG_TAG(test)) \
190 LOG_TAG(thread) \
191 LOG_TAG(throttle) \
192 LOG_TAG(timer) \
193 LOG_TAG(tlab) \
194 LOG_TAG(tracking) \
195 LOG_TAG(unload) /* Trace unloading of classes */ \
196 LOG_TAG(unshareable) \
197 NOT_PRODUCT(LOG_TAG(upcall)) \
198 LOG_TAG(update) \
199 LOG_TAG(valuebasedclasses) \
200 LOG_TAG(verification) \
201 LOG_TAG(verify) \
202 LOG_TAG(vmmutex) \
203 LOG_TAG(vmoperation) \
204 LOG_TAG(vmthread) \
205 LOG_TAG(vtables) \
206 LOG_TAG(vtablestubs)
207
208 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
209
210 // Expand a set of log tags to their prefixed names.
211 // For error detection purposes, the macro passes one more tag than what is supported.
212 // If too many tags are given, a static assert in the log class will fail.
213 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...) PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
214 PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
215 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.
216 #define EXPAND_VARARGS(x) x
217 #define LOG_TAGS(...) EXPAND_VARARGS(LOG_TAGS_EXPANDED(__VA_ARGS__, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG))
218
219 // Log tags are used to classify log messages.
|
129 LOG_TAG(numa) \
130 LOG_TAG(objecttagging) \
131 LOG_TAG(obsolete) \
132 LOG_TAG(oldobject) \
133 LOG_TAG(oom) \
134 LOG_TAG(oopmap) \
135 LOG_TAG(oops) \
136 LOG_TAG(oopstorage) \
137 LOG_TAG(os) \
138 LOG_TAG(owner) \
139 LOG_TAG(pagesize) \
140 LOG_TAG(parser) \
141 LOG_TAG(patch) \
142 LOG_TAG(path) \
143 LOG_TAG(perf) \
144 LOG_TAG(periodic) \
145 LOG_TAG(phases) \
146 LOG_TAG(plab) \
147 LOG_TAG(placeholders) \
148 LOG_TAG(preempt) \
149 LOG_TAG(preload) /* Trace successfull class preloading */ \
150 LOG_TAG(preorder) /* Trace all classes loaded in order referenced (not loaded) */ \
151 LOG_TAG(preview) /* Trace loading of preview feature types */ \
152 LOG_TAG(promotion) \
153 LOG_TAG(protectiondomain) /* "Trace protection domain verification" */ \
154 LOG_TAG(ptrqueue) \
155 LOG_TAG(purge) \
156 LOG_TAG(record) \
157 LOG_TAG(redefine) \
158 LOG_TAG(ref) \
159 LOG_TAG(refine) \
160 LOG_TAG(region) \
161 LOG_TAG(reloc) \
162 LOG_TAG(remset) \
163 LOG_TAG(resolve) \
164 LOG_TAG(safepoint) \
165 LOG_TAG(sampling) \
166 LOG_TAG(scavenge) \
167 LOG_TAG(sealed) \
168 LOG_TAG(setting) \
169 LOG_TAG(smr) \
181 LOG_TAG(stringtable) \
182 LOG_TAG(subclass) \
183 LOG_TAG(survivor) \
184 LOG_TAG(suspend) \
185 LOG_TAG(sweep) \
186 LOG_TAG(symboltable) \
187 LOG_TAG(system) \
188 LOG_TAG(table) \
189 LOG_TAG(task) \
190 DEBUG_ONLY(LOG_TAG(test)) \
191 LOG_TAG(thread) \
192 LOG_TAG(throttle) \
193 LOG_TAG(timer) \
194 LOG_TAG(tlab) \
195 LOG_TAG(tracking) \
196 LOG_TAG(unload) /* Trace unloading of classes */ \
197 LOG_TAG(unshareable) \
198 NOT_PRODUCT(LOG_TAG(upcall)) \
199 LOG_TAG(update) \
200 LOG_TAG(valuebasedclasses) \
201 LOG_TAG(valuetypes) \
202 LOG_TAG(verification) \
203 LOG_TAG(verify) \
204 LOG_TAG(vmmutex) \
205 LOG_TAG(vmoperation) \
206 LOG_TAG(vmthread) \
207 LOG_TAG(vtables) \
208 LOG_TAG(vtablestubs)
209
210 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
211
212 // Expand a set of log tags to their prefixed names.
213 // For error detection purposes, the macro passes one more tag than what is supported.
214 // If too many tags are given, a static assert in the log class will fail.
215 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...) PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
216 PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
217 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.
218 #define EXPAND_VARARGS(x) x
219 #define LOG_TAGS(...) EXPAND_VARARGS(LOG_TAGS_EXPANDED(__VA_ARGS__, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG))
220
221 // Log tags are used to classify log messages.
|