src/share/vm/logging/logTag.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8148630.01 Sdiff src/share/vm/logging

src/share/vm/logging/logTag.hpp

Print this page


   1 /*
   2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


  56   LOG_TAG(ihop) \
  57   LOG_TAG(itables) \
  58   LOG_TAG(jni) \
  59   LOG_TAG(liveness) \
  60   LOG_TAG(logging) \
  61   LOG_TAG(marking) \
  62   LOG_TAG(metaspace) \
  63   LOG_TAG(monitorinflation) \
  64   LOG_TAG(os) \
  65   LOG_TAG(phases) \
  66   LOG_TAG(plab) \
  67   LOG_TAG(promotion) \
  68   LOG_TAG(ref) \
  69   LOG_TAG(refine) \
  70   LOG_TAG(region) \
  71   LOG_TAG(remset) \
  72   LOG_TAG(safepoint) \
  73   LOG_TAG(scavenge) \
  74   LOG_TAG(scrub) \
  75   LOG_TAG(start) \

  76   LOG_TAG(state) \
  77   LOG_TAG(stats) \
  78   LOG_TAG(stringdedup) \
  79   LOG_TAG(survivor) \
  80   LOG_TAG(sweep) \
  81   LOG_TAG(task) \
  82   LOG_TAG(tlab) \
  83   LOG_TAG(time) \
  84   LOG_TAG(verify) \
  85   LOG_TAG(vmoperation) \
  86   LOG_TAG(vtables)
  87 
  88 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
  89 
  90 // Expand a set of log tags to their prefixed names.
  91 // For error detection purposes, the macro passes one more tag than what is supported.
  92 // If too many tags are given, a static assert in the log class will fail.
  93 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...)  PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
  94                                                         PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
  95 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.


   1 /*
   2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *


  56   LOG_TAG(ihop) \
  57   LOG_TAG(itables) \
  58   LOG_TAG(jni) \
  59   LOG_TAG(liveness) \
  60   LOG_TAG(logging) \
  61   LOG_TAG(marking) \
  62   LOG_TAG(metaspace) \
  63   LOG_TAG(monitorinflation) \
  64   LOG_TAG(os) \
  65   LOG_TAG(phases) \
  66   LOG_TAG(plab) \
  67   LOG_TAG(promotion) \
  68   LOG_TAG(ref) \
  69   LOG_TAG(refine) \
  70   LOG_TAG(region) \
  71   LOG_TAG(remset) \
  72   LOG_TAG(safepoint) \
  73   LOG_TAG(scavenge) \
  74   LOG_TAG(scrub) \
  75   LOG_TAG(start) \
  76   LOG_TAG(startuptime) \
  77   LOG_TAG(state) \
  78   LOG_TAG(stats) \
  79   LOG_TAG(stringdedup) \
  80   LOG_TAG(survivor) \
  81   LOG_TAG(sweep) \
  82   LOG_TAG(task) \
  83   LOG_TAG(tlab) \
  84   LOG_TAG(time) \
  85   LOG_TAG(verify) \
  86   LOG_TAG(vmoperation) \
  87   LOG_TAG(vtables)
  88 
  89 #define PREFIX_LOG_TAG(T) (LogTag::_##T)
  90 
  91 // Expand a set of log tags to their prefixed names.
  92 // For error detection purposes, the macro passes one more tag than what is supported.
  93 // If too many tags are given, a static assert in the log class will fail.
  94 #define LOG_TAGS_EXPANDED(T0, T1, T2, T3, T4, T5, ...)  PREFIX_LOG_TAG(T0), PREFIX_LOG_TAG(T1), PREFIX_LOG_TAG(T2), \
  95                                                         PREFIX_LOG_TAG(T3), PREFIX_LOG_TAG(T4), PREFIX_LOG_TAG(T5)
  96 // The EXPAND_VARARGS macro is required for MSVC, or it will resolve the LOG_TAGS_EXPANDED macro incorrectly.


src/share/vm/logging/logTag.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File