src/share/vm/utilities/macros.hpp

Print this page
rev 13113 : 8182651: Add TRACE_ONLY conditional macro to support more fine-grained INCLUDE_TRACE programming
Reviewed-by:

*** 1,7 **** /* ! * Copyright (c) 1997, 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. --- 1,7 ---- /* ! * Copyright (c) 1997, 2017, 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.
*** 174,183 **** --- 174,189 ---- #ifndef INCLUDE_TRACE #define INCLUDE_TRACE 1 #endif // INCLUDE_TRACE + #if INCLUDE_TRACE + #define TRACE_ONLY(code) code + #else + #define TRACE_ONLY(code) + #endif // INCLUDE_TRACE + #ifndef INCLUDE_JVMCI #define INCLUDE_JVMCI 1 #endif #ifdef INCLUDE_AOT