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