< prev index next >

src/hotspot/share/logging/logTag.hpp

Print this page

173   LOG_TAG(stringtable) \
174   LOG_TAG(subclass) \
175   LOG_TAG(survivor) \
176   LOG_TAG(suspend) \
177   LOG_TAG(sweep) \
178   LOG_TAG(symboltable) \
179   LOG_TAG(system) \
180   LOG_TAG(table) \
181   LOG_TAG(task) \
182   DEBUG_ONLY(LOG_TAG(test)) \
183   LOG_TAG(thread) \
184   LOG_TAG(throttle) \
185   LOG_TAG(time) \
186   LOG_TAG(timer) \
187   LOG_TAG(tlab) \
188   LOG_TAG(tracking) \
189   LOG_TAG(unload) /* Trace unloading of classes */ \
190   LOG_TAG(unshareable) \
191   LOG_TAG(update) \
192   LOG_TAG(valuebasedclasses) \

193   LOG_TAG(verification) \
194   LOG_TAG(verify) \
195   LOG_TAG(vmmutex) \
196   LOG_TAG(vmoperation) \
197   LOG_TAG(vmthread) \
198   LOG_TAG(vtables) \
199   LOG_TAG(vtablestubs) \
200   LOG_TAG(workgang)
201 
202 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
203 
204 // Expand a set of log tags to their prefixed names.
205 // For error detection purposes, the macro passes one more tag than what is supported.
206 // If too many tags are given, a static assert in the log class will fail.
207 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...)  PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
208                                                         PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
209 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.
210 #define EXPAND_VARARGS(x) x
211 #define LOG_TAGS(...) EXPAND_VARARGS(LOG_TAGS_EXPANDED(__VA_ARGS__, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG))
212 

173   LOG_TAG(stringtable) \
174   LOG_TAG(subclass) \
175   LOG_TAG(survivor) \
176   LOG_TAG(suspend) \
177   LOG_TAG(sweep) \
178   LOG_TAG(symboltable) \
179   LOG_TAG(system) \
180   LOG_TAG(table) \
181   LOG_TAG(task) \
182   DEBUG_ONLY(LOG_TAG(test)) \
183   LOG_TAG(thread) \
184   LOG_TAG(throttle) \
185   LOG_TAG(time) \
186   LOG_TAG(timer) \
187   LOG_TAG(tlab) \
188   LOG_TAG(tracking) \
189   LOG_TAG(unload) /* Trace unloading of classes */ \
190   LOG_TAG(unshareable) \
191   LOG_TAG(update) \
192   LOG_TAG(valuebasedclasses) \
193   LOG_TAG(valuetypes) \
194   LOG_TAG(verification) \
195   LOG_TAG(verify) \
196   LOG_TAG(vmmutex) \
197   LOG_TAG(vmoperation) \
198   LOG_TAG(vmthread) \
199   LOG_TAG(vtables) \
200   LOG_TAG(vtablestubs) \
201   LOG_TAG(workgang)
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 
< prev index next >