143 LOG_TAG(objecttagging) \
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(page) \
153 LOG_TAG(pagesize) \
154 LOG_TAG(parser) \
155 LOG_TAG(patch) \
156 LOG_TAG(path) \
157 LOG_TAG(perf) \
158 LOG_TAG(periodic) \
159 LOG_TAG(phases) \
160 LOG_TAG(plab) \
161 LOG_TAG(placeholders) \
162 LOG_TAG(preempt) \
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) \
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(training) \
210 LOG_TAG(trimnative) /* trim native heap */ \
211 LOG_TAG(unload) /* Trace unloading of classes */ \
212 LOG_TAG(unmap) \
213 LOG_TAG(unshareable) \
214 NOT_PRODUCT(LOG_TAG(upcall)) \
215 LOG_TAG(update) \
216 LOG_TAG(valuebasedclasses) \
217 LOG_TAG(verification) \
218 LOG_TAG(verify) \
219 LOG_TAG(vmatree) \
220 LOG_TAG(vmmutex) \
221 LOG_TAG(vmoperation) \
222 LOG_TAG(vmthread) \
223 LOG_TAG(vtables) \
224 LOG_TAG(vtablestubs)
225
226 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
227
228 // Expand a set of log tags to their prefixed names.
229 // For error detection purposes, the macro passes one more tag than what is supported.
230 // If too many tags are given, a static assert in the log class will fail.
231 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...) PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
232 PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
233 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.
234 #define EXPAND_VARARGS(x) x
235 #define LOG_TAGS(...) EXPAND_VARARGS(LOG_TAGS_EXPANDED(__VA_ARGS__, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG))
236
|
143 LOG_TAG(objecttagging) \
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(page) \
153 LOG_TAG(pagesize) \
154 LOG_TAG(parser) \
155 LOG_TAG(patch) \
156 LOG_TAG(path) \
157 LOG_TAG(perf) \
158 LOG_TAG(periodic) \
159 LOG_TAG(phases) \
160 LOG_TAG(plab) \
161 LOG_TAG(placeholders) \
162 LOG_TAG(preempt) \
163 LOG_TAG(preload) /* Trace successfull class preloading */ \
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(valuetypes) \
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
|