142 LOG_TAG(objecttagging) \
143 LOG_TAG(obsolete) \
144 LOG_TAG(oldobject) \
145 LOG_TAG(oom) \
146 LOG_TAG(oopmap) \
147 LOG_TAG(oops) \
148 LOG_TAG(oopstorage) \
149 LOG_TAG(os) \
150 LOG_TAG(owner) \
151 LOG_TAG(page) \
152 LOG_TAG(pagesize) \
153 LOG_TAG(parser) \
154 LOG_TAG(patch) \
155 LOG_TAG(path) \
156 LOG_TAG(perf) \
157 LOG_TAG(periodic) \
158 LOG_TAG(phases) \
159 LOG_TAG(plab) \
160 LOG_TAG(placeholders) \
161 LOG_TAG(preempt) \
162 LOG_TAG(preorder) /* Trace all classes loaded in order referenced (not loaded) */ \
163 LOG_TAG(preview) /* Trace loading of preview feature types */ \
164 LOG_TAG(promotion) \
165 LOG_TAG(ptrqueue) \
166 LOG_TAG(purge) \
167 LOG_TAG(record) \
168 LOG_TAG(redefine) \
169 LOG_TAG(ref) \
170 LOG_TAG(refine) \
171 LOG_TAG(region) \
172 LOG_TAG(reloc) \
173 LOG_TAG(remset) \
174 LOG_TAG(resolve) \
175 LOG_TAG(safepoint) \
176 LOG_TAG(sampling) \
177 LOG_TAG(scavenge) \
178 LOG_TAG(sealed) \
179 LOG_TAG(setting) \
180 LOG_TAG(smr) \
181 LOG_TAG(stackbarrier) \
195 LOG_TAG(survivor) \
196 LOG_TAG(suspend) \
197 LOG_TAG(sweep) \
198 LOG_TAG(symboltable) \
199 LOG_TAG(system) \
200 LOG_TAG(table) \
201 LOG_TAG(task) \
202 DEBUG_ONLY(LOG_TAG(test)) \
203 LOG_TAG(thread) \
204 LOG_TAG(throttle) \
205 LOG_TAG(timer) \
206 LOG_TAG(tlab) \
207 LOG_TAG(tracking) \
208 LOG_TAG(trimnative) /* trim native heap */ \
209 LOG_TAG(unload) /* Trace unloading of classes */ \
210 LOG_TAG(unmap) \
211 LOG_TAG(unshareable) \
212 NOT_PRODUCT(LOG_TAG(upcall)) \
213 LOG_TAG(update) \
214 LOG_TAG(valuebasedclasses) \
215 LOG_TAG(verification) \
216 LOG_TAG(verify) \
217 LOG_TAG(vmmutex) \
218 LOG_TAG(vmoperation) \
219 LOG_TAG(vmthread) \
220 LOG_TAG(vtables) \
221 LOG_TAG(vtablestubs)
222
223 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
224
225 // Expand a set of log tags to their prefixed names.
226 // For error detection purposes, the macro passes one more tag than what is supported.
227 // If too many tags are given, a static assert in the log class will fail.
228 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...) PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
229 PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
230 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.
231 #define EXPAND_VARARGS(x) x
232 #define LOG_TAGS(...) EXPAND_VARARGS(LOG_TAGS_EXPANDED(__VA_ARGS__, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG))
233
234 // Log tags are used to classify log messages.
|
142 LOG_TAG(objecttagging) \
143 LOG_TAG(obsolete) \
144 LOG_TAG(oldobject) \
145 LOG_TAG(oom) \
146 LOG_TAG(oopmap) \
147 LOG_TAG(oops) \
148 LOG_TAG(oopstorage) \
149 LOG_TAG(os) \
150 LOG_TAG(owner) \
151 LOG_TAG(page) \
152 LOG_TAG(pagesize) \
153 LOG_TAG(parser) \
154 LOG_TAG(patch) \
155 LOG_TAG(path) \
156 LOG_TAG(perf) \
157 LOG_TAG(periodic) \
158 LOG_TAG(phases) \
159 LOG_TAG(plab) \
160 LOG_TAG(placeholders) \
161 LOG_TAG(preempt) \
162 LOG_TAG(preload) /* Trace successfull class preloading */ \
163 LOG_TAG(preorder) /* Trace all classes loaded in order referenced (not loaded) */ \
164 LOG_TAG(preview) /* Trace loading of preview feature types */ \
165 LOG_TAG(promotion) \
166 LOG_TAG(ptrqueue) \
167 LOG_TAG(purge) \
168 LOG_TAG(record) \
169 LOG_TAG(redefine) \
170 LOG_TAG(ref) \
171 LOG_TAG(refine) \
172 LOG_TAG(region) \
173 LOG_TAG(reloc) \
174 LOG_TAG(remset) \
175 LOG_TAG(resolve) \
176 LOG_TAG(safepoint) \
177 LOG_TAG(sampling) \
178 LOG_TAG(scavenge) \
179 LOG_TAG(sealed) \
180 LOG_TAG(setting) \
181 LOG_TAG(smr) \
182 LOG_TAG(stackbarrier) \
196 LOG_TAG(survivor) \
197 LOG_TAG(suspend) \
198 LOG_TAG(sweep) \
199 LOG_TAG(symboltable) \
200 LOG_TAG(system) \
201 LOG_TAG(table) \
202 LOG_TAG(task) \
203 DEBUG_ONLY(LOG_TAG(test)) \
204 LOG_TAG(thread) \
205 LOG_TAG(throttle) \
206 LOG_TAG(timer) \
207 LOG_TAG(tlab) \
208 LOG_TAG(tracking) \
209 LOG_TAG(trimnative) /* trim native heap */ \
210 LOG_TAG(unload) /* Trace unloading of classes */ \
211 LOG_TAG(unmap) \
212 LOG_TAG(unshareable) \
213 NOT_PRODUCT(LOG_TAG(upcall)) \
214 LOG_TAG(update) \
215 LOG_TAG(valuebasedclasses) \
216 LOG_TAG(valuetypes) \
217 LOG_TAG(verification) \
218 LOG_TAG(verify) \
219 LOG_TAG(vmmutex) \
220 LOG_TAG(vmoperation) \
221 LOG_TAG(vmthread) \
222 LOG_TAG(vtables) \
223 LOG_TAG(vtablestubs)
224
225 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
226
227 // Expand a set of log tags to their prefixed names.
228 // For error detection purposes, the macro passes one more tag than what is supported.
229 // If too many tags are given, a static assert in the log class will fail.
230 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...) PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
231 PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
232 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.
233 #define EXPAND_VARARGS(x) x
234 #define LOG_TAGS(...) EXPAND_VARARGS(LOG_TAGS_EXPANDED(__VA_ARGS__, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG))
235
236 // Log tags are used to classify log messages.
|