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