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