From 9500b02eaec65aec2f3db0ed171e24a81d6e5b32 Mon Sep 17 00:00:00 2001 From: Robbin Ehn <rehn@openjdk.org> Date: Tue, 8 Mar 2016 13:05:21 +0100 Subject: [PATCH] 8151265: Add a way to extend UL tags Reviewed-by: dholmes, kbarrett --- hotspot/src/share/vm/logging/logTag.hpp | 4 ++- hotspot/src/share/vm/logging/logTag_ext.hpp | 29 +++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 hotspot/src/share/vm/logging/logTag_ext.hpp diff --git a/hotspot/src/share/vm/logging/logTag.hpp b/hotspot/src/share/vm/logging/logTag.hpp index 5455a10b4a3..c3edb497477 100644 --- a/hotspot/src/share/vm/logging/logTag.hpp +++ b/hotspot/src/share/vm/logging/logTag.hpp @@ -24,6 +24,7 @@ #ifndef SHARE_VM_LOGGING_LOGTAG_HPP #define SHARE_VM_LOGGING_LOGTAG_HPP +#include "logging/logTag_ext.hpp" #include "memory/allocation.hpp" #include "utilities/globalDefinitions.hpp" @@ -91,7 +92,8 @@ LOG_TAG(verboseverification) \ LOG_TAG(verify) \ LOG_TAG(vmoperation) \ - LOG_TAG(vtables) + LOG_TAG(vtables) \ + LOG_TAG_LIST_EXT #define PREFIX_LOG_TAG(T) (LogTag::_##T) diff --git a/hotspot/src/share/vm/logging/logTag_ext.hpp b/hotspot/src/share/vm/logging/logTag_ext.hpp new file mode 100644 index 00000000000..0300d311a2e --- /dev/null +++ b/hotspot/src/share/vm/logging/logTag_ext.hpp @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + * + */ +#ifndef SHARE_VM_LOGGING_LOGTAG_EXT_HPP +#define SHARE_VM_LOGGING_LOGTAG_EXT_HPP + +#define LOG_TAG_LIST_EXT + +#endif // SHARE_VM_LOGGING_LOGTAG_EXT_HPP