< prev index next >

src/hotspot/share/logging/logTag.hpp

Print this page




 152   LOG_TAG(stringdedup) \
 153   LOG_TAG(stringtable) \
 154   LOG_TAG(symboltable) \
 155   LOG_TAG(stackmap) \
 156   LOG_TAG(subclass) \
 157   LOG_TAG(survivor) \
 158   LOG_TAG(sweep) \
 159   LOG_TAG(system) \
 160   LOG_TAG(table) \
 161   LOG_TAG(task) \
 162   DEBUG_ONLY(LOG_TAG(test)) \
 163   LOG_TAG(thread) \
 164   LOG_TAG(tlab) \
 165   LOG_TAG(time) \
 166   LOG_TAG(timer) \
 167   LOG_TAG(tracking) \
 168   LOG_TAG(update) \
 169   LOG_TAG(unload) /* Trace unloading of classes */ \
 170   LOG_TAG(unshareable) \
 171   LOG_TAG(mirror) \

 172   LOG_TAG(verification) \
 173   LOG_TAG(verify) \
 174   LOG_TAG(vmmonitor) \
 175   LOG_TAG(vmoperation) \
 176   LOG_TAG(vmthread) \
 177   LOG_TAG(vtables) \
 178   LOG_TAG(vtablestubs) \
 179   LOG_TAG(workgang) \
 180   LOG_TAG_LIST_EXT
 181 
 182 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
 183 
 184 // Expand a set of log tags to their prefixed names.
 185 // For error detection purposes, the macro passes one more tag than what is supported.
 186 // If too many tags are given, a static assert in the log class will fail.
 187 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...)  PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
 188                                                         PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
 189 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.
 190 #define EXPAND_VARARGS(x) x
 191 #define LOG_TAGS(...) EXPAND_VARARGS(LOG_TAGS_EXPANDED(__VA_ARGS__, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG))




 152   LOG_TAG(stringdedup) \
 153   LOG_TAG(stringtable) \
 154   LOG_TAG(symboltable) \
 155   LOG_TAG(stackmap) \
 156   LOG_TAG(subclass) \
 157   LOG_TAG(survivor) \
 158   LOG_TAG(sweep) \
 159   LOG_TAG(system) \
 160   LOG_TAG(table) \
 161   LOG_TAG(task) \
 162   DEBUG_ONLY(LOG_TAG(test)) \
 163   LOG_TAG(thread) \
 164   LOG_TAG(tlab) \
 165   LOG_TAG(time) \
 166   LOG_TAG(timer) \
 167   LOG_TAG(tracking) \
 168   LOG_TAG(update) \
 169   LOG_TAG(unload) /* Trace unloading of classes */ \
 170   LOG_TAG(unshareable) \
 171   LOG_TAG(mirror) \
 172   LOG_TAG(valuetypes) \
 173   LOG_TAG(verification) \
 174   LOG_TAG(verify) \
 175   LOG_TAG(vmmonitor) \
 176   LOG_TAG(vmoperation) \
 177   LOG_TAG(vmthread) \
 178   LOG_TAG(vtables) \
 179   LOG_TAG(vtablestubs) \
 180   LOG_TAG(workgang) \
 181   LOG_TAG_LIST_EXT
 182 
 183 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
 184 
 185 // Expand a set of log tags to their prefixed names.
 186 // For error detection purposes, the macro passes one more tag than what is supported.
 187 // If too many tags are given, a static assert in the log class will fail.
 188 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...)  PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
 189                                                         PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
 190 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.
 191 #define EXPAND_VARARGS(x) x
 192 #define LOG_TAGS(...) EXPAND_VARARGS(LOG_TAGS_EXPANDED(__VA_ARGS__, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG, _NO_TAG))


< prev index next >