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