125 LOG_TAG(normalize) \
126 LOG_TAG(numa) \
127 LOG_TAG(objecttagging) \
128 LOG_TAG(obsolete) \
129 LOG_TAG(oldobject) \
130 LOG_TAG(oom) \
131 LOG_TAG(oopmap) \
132 LOG_TAG(oops) \
133 LOG_TAG(oopstorage) \
134 LOG_TAG(os) \
135 LOG_TAG(owner) \
136 LOG_TAG(pagesize) \
137 LOG_TAG(parser) \
138 LOG_TAG(patch) \
139 LOG_TAG(path) \
140 LOG_TAG(perf) \
141 LOG_TAG(periodic) \
142 LOG_TAG(phases) \
143 LOG_TAG(plab) \
144 LOG_TAG(placeholders) \
145 LOG_TAG(preorder) /* Trace all classes loaded in order referenced (not loaded) */ \
146 LOG_TAG(preview) /* Trace loading of preview feature types */ \
147 LOG_TAG(promotion) \
148 LOG_TAG(protectiondomain) /* "Trace protection domain verification" */ \
149 LOG_TAG(ptrqueue) \
150 LOG_TAG(purge) \
151 LOG_TAG(record) \
152 LOG_TAG(redefine) \
153 LOG_TAG(ref) \
154 LOG_TAG(refine) \
155 LOG_TAG(region) \
156 LOG_TAG(reloc) \
157 LOG_TAG(remset) \
158 LOG_TAG(resolve) \
159 LOG_TAG(safepoint) \
160 LOG_TAG(sampling) \
161 LOG_TAG(scavenge) \
162 LOG_TAG(sealed) \
163 LOG_TAG(setting) \
164 LOG_TAG(smr) \
175 LOG_TAG(stringdedup) \
176 LOG_TAG(stringtable) \
177 LOG_TAG(subclass) \
178 LOG_TAG(survivor) \
179 LOG_TAG(suspend) \
180 LOG_TAG(sweep) \
181 LOG_TAG(symboltable) \
182 LOG_TAG(system) \
183 LOG_TAG(table) \
184 LOG_TAG(task) \
185 DEBUG_ONLY(LOG_TAG(test)) \
186 LOG_TAG(thread) \
187 LOG_TAG(throttle) \
188 LOG_TAG(timer) \
189 LOG_TAG(tlab) \
190 LOG_TAG(tracking) \
191 LOG_TAG(unload) /* Trace unloading of classes */ \
192 LOG_TAG(unshareable) \
193 LOG_TAG(update) \
194 LOG_TAG(valuebasedclasses) \
195 LOG_TAG(verification) \
196 LOG_TAG(verify) \
197 LOG_TAG(vmmutex) \
198 LOG_TAG(vmoperation) \
199 LOG_TAG(vmthread) \
200 LOG_TAG(vtables) \
201 LOG_TAG(vtablestubs)
202
203 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
204
205 // Expand a set of log tags to their prefixed names.
206 // For error detection purposes, the macro passes one more tag than what is supported.
207 // If too many tags are given, a static assert in the log class will fail.
208 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...) PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
209 PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
210 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.
211 #define EXPAND_VARARGS(x) x
212 #define LOG_TAGS(...) EXPAND_VARARGS(LOG_TAGS_EXPANDED(__VA_ARGS__, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG))
213
214 // Log tags are used to classify log messages.
|
125 LOG_TAG(normalize) \
126 LOG_TAG(numa) \
127 LOG_TAG(objecttagging) \
128 LOG_TAG(obsolete) \
129 LOG_TAG(oldobject) \
130 LOG_TAG(oom) \
131 LOG_TAG(oopmap) \
132 LOG_TAG(oops) \
133 LOG_TAG(oopstorage) \
134 LOG_TAG(os) \
135 LOG_TAG(owner) \
136 LOG_TAG(pagesize) \
137 LOG_TAG(parser) \
138 LOG_TAG(patch) \
139 LOG_TAG(path) \
140 LOG_TAG(perf) \
141 LOG_TAG(periodic) \
142 LOG_TAG(phases) \
143 LOG_TAG(plab) \
144 LOG_TAG(placeholders) \
145 LOG_TAG(preload) /* Trace successfull class preloading */ \
146 LOG_TAG(preorder) /* Trace all classes loaded in order referenced (not loaded) */ \
147 LOG_TAG(preview) /* Trace loading of preview feature types */ \
148 LOG_TAG(promotion) \
149 LOG_TAG(protectiondomain) /* "Trace protection domain verification" */ \
150 LOG_TAG(ptrqueue) \
151 LOG_TAG(purge) \
152 LOG_TAG(record) \
153 LOG_TAG(redefine) \
154 LOG_TAG(ref) \
155 LOG_TAG(refine) \
156 LOG_TAG(region) \
157 LOG_TAG(reloc) \
158 LOG_TAG(remset) \
159 LOG_TAG(resolve) \
160 LOG_TAG(safepoint) \
161 LOG_TAG(sampling) \
162 LOG_TAG(scavenge) \
163 LOG_TAG(sealed) \
164 LOG_TAG(setting) \
165 LOG_TAG(smr) \
176 LOG_TAG(stringdedup) \
177 LOG_TAG(stringtable) \
178 LOG_TAG(subclass) \
179 LOG_TAG(survivor) \
180 LOG_TAG(suspend) \
181 LOG_TAG(sweep) \
182 LOG_TAG(symboltable) \
183 LOG_TAG(system) \
184 LOG_TAG(table) \
185 LOG_TAG(task) \
186 DEBUG_ONLY(LOG_TAG(test)) \
187 LOG_TAG(thread) \
188 LOG_TAG(throttle) \
189 LOG_TAG(timer) \
190 LOG_TAG(tlab) \
191 LOG_TAG(tracking) \
192 LOG_TAG(unload) /* Trace unloading of classes */ \
193 LOG_TAG(unshareable) \
194 LOG_TAG(update) \
195 LOG_TAG(valuebasedclasses) \
196 LOG_TAG(valuetypes) \
197 LOG_TAG(verification) \
198 LOG_TAG(verify) \
199 LOG_TAG(vmmutex) \
200 LOG_TAG(vmoperation) \
201 LOG_TAG(vmthread) \
202 LOG_TAG(vtables) \
203 LOG_TAG(vtablestubs)
204
205 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
206
207 // Expand a set of log tags to their prefixed names.
208 // For error detection purposes, the macro passes one more tag than what is supported.
209 // If too many tags are given, a static assert in the log class will fail.
210 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...) PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
211 PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
212 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.
213 #define EXPAND_VARARGS(x) x
214 #define LOG_TAGS(...) EXPAND_VARARGS(LOG_TAGS_EXPANDED(__VA_ARGS__, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG))
215
216 // Log tags are used to classify log messages.
|