src/share/vm/utilities/macros.hpp

changeset 9931
fd44df5e3bc3
parent 9806
758c07667682
parent 9896
1b8c45b8216a
     1.1 --- a/src/share/vm/utilities/macros.hpp	Wed Oct 14 16:43:13 2020 +0800
     1.2 +++ b/src/share/vm/utilities/macros.hpp	Wed Oct 14 17:44:48 2020 +0800
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -166,9 +166,15 @@
    1.11  #define NOT_NMT_RETURN_(code) { return code; }
    1.12  #endif // INCLUDE_NMT
    1.13  
    1.14 -#ifndef INCLUDE_TRACE
    1.15 -#define INCLUDE_TRACE 1
    1.16 -#endif // INCLUDE_TRACE
    1.17 +#ifndef INCLUDE_JFR
    1.18 +#define INCLUDE_JFR 1
    1.19 +#endif
    1.20 +
    1.21 +#if INCLUDE_JFR
    1.22 +#define JFR_ONLY(code) code
    1.23 +#else
    1.24 +#define JFR_ONLY(code)
    1.25 +#endif
    1.26  
    1.27  // COMPILER1 variant
    1.28  #ifdef COMPILER1

mercurial