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