< prev index next >

src/share/vm/utilities/macros.hpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 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  *


 143 #if INCLUDE_ALL_GCS
 144 #define NOT_ALL_GCS_RETURN        /* next token must be ; */
 145 #define NOT_ALL_GCS_RETURN_(code) /* next token must be ; */
 146 #else
 147 #define NOT_ALL_GCS_RETURN        {}
 148 #define NOT_ALL_GCS_RETURN_(code) { return code; }
 149 #endif // INCLUDE_ALL_GCS
 150 
 151 #ifndef INCLUDE_NMT
 152 #define INCLUDE_NMT 1
 153 #endif // INCLUDE_NMT
 154 
 155 #if INCLUDE_NMT
 156 #define NOT_NMT_RETURN        /* next token must be ; */
 157 #define NOT_NMT_RETURN_(code) /* next token must be ; */
 158 #else
 159 #define NOT_NMT_RETURN        {}
 160 #define NOT_NMT_RETURN_(code) { return code; }
 161 #endif // INCLUDE_NMT
 162 
 163 #ifndef INCLUDE_TRACE
 164 #define INCLUDE_TRACE 1
 165 #endif // INCLUDE_TRACE






 166 
 167 // COMPILER1 variant
 168 #ifdef COMPILER1
 169 #ifdef COMPILER2
 170   #define TIERED
 171 #endif
 172 #define COMPILER1_PRESENT(code) code
 173 #else // COMPILER1
 174 #define COMPILER1_PRESENT(code)
 175 #endif // COMPILER1
 176 
 177 // COMPILER2 variant
 178 #ifdef COMPILER2
 179 #define COMPILER2_PRESENT(code) code
 180 #define NOT_COMPILER2(code)
 181 #else // COMPILER2
 182 #define COMPILER2_PRESENT(code)
 183 #define NOT_COMPILER2(code) code
 184 #endif // COMPILER2
 185 


   1 /*
   2  * Copyright (c) 1997, 2018, 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  *


 143 #if INCLUDE_ALL_GCS
 144 #define NOT_ALL_GCS_RETURN        /* next token must be ; */
 145 #define NOT_ALL_GCS_RETURN_(code) /* next token must be ; */
 146 #else
 147 #define NOT_ALL_GCS_RETURN        {}
 148 #define NOT_ALL_GCS_RETURN_(code) { return code; }
 149 #endif // INCLUDE_ALL_GCS
 150 
 151 #ifndef INCLUDE_NMT
 152 #define INCLUDE_NMT 1
 153 #endif // INCLUDE_NMT
 154 
 155 #if INCLUDE_NMT
 156 #define NOT_NMT_RETURN        /* next token must be ; */
 157 #define NOT_NMT_RETURN_(code) /* next token must be ; */
 158 #else
 159 #define NOT_NMT_RETURN        {}
 160 #define NOT_NMT_RETURN_(code) { return code; }
 161 #endif // INCLUDE_NMT
 162 
 163 #ifndef INCLUDE_JFR
 164 #define INCLUDE_JFR 1
 165 #endif
 166 
 167 #if INCLUDE_JFR
 168 #define JFR_ONLY(code) code
 169 #else
 170 #define JFR_ONLY(code)
 171 #endif
 172 
 173 // COMPILER1 variant
 174 #ifdef COMPILER1
 175 #ifdef COMPILER2
 176   #define TIERED
 177 #endif
 178 #define COMPILER1_PRESENT(code) code
 179 #else // COMPILER1
 180 #define COMPILER1_PRESENT(code)
 181 #endif // COMPILER1
 182 
 183 // COMPILER2 variant
 184 #ifdef COMPILER2
 185 #define COMPILER2_PRESENT(code) code
 186 #define NOT_COMPILER2(code)
 187 #else // COMPILER2
 188 #define COMPILER2_PRESENT(code)
 189 #define NOT_COMPILER2(code) code
 190 #endif // COMPILER2
 191 


< prev index next >