src/hotspot/share/utilities/macros.hpp
changeset 49982 9042ffe5b7fe
parent 49972 37b2446d7f86
child 50021 b8308d6356e7
child 56533 28a4f284ad83
equal deleted inserted replaced
49981:bd0a95bec96b 49982:9042ffe5b7fe
   129 #else
   129 #else
   130 #define NOT_MANAGEMENT_RETURN        {}
   130 #define NOT_MANAGEMENT_RETURN        {}
   131 #define NOT_MANAGEMENT_RETURN_(code) { return code; }
   131 #define NOT_MANAGEMENT_RETURN_(code) { return code; }
   132 #endif // INCLUDE_MANAGEMENT
   132 #endif // INCLUDE_MANAGEMENT
   133 
   133 
   134 /*
   134 #ifndef INCLUDE_CMSGC
   135  * When INCLUDE_ALL_GCS is false the only garbage collectors
   135 #define INCLUDE_CMSGC 1
   136  * included in the JVM are defaultNewGeneration and markCompact.
   136 #endif // INCLUDE_CMSGC
   137  *
   137 
   138  * When INCLUDE_ALL_GCS is true all garbage collectors are
   138 #if INCLUDE_CMSGC
   139  * included in the JVM.
   139 #define CMSGC_ONLY(x) x
   140  */
   140 #define CMSGC_ONLY_ARG(arg) arg,
   141 #ifndef INCLUDE_ALL_GCS
   141 #define NOT_CMSGC(x)
   142 #define INCLUDE_ALL_GCS 1
   142 #define NOT_CMSGC_RETURN        /* next token must be ; */
   143 #endif // INCLUDE_ALL_GCS
   143 #define NOT_CMSGC_RETURN_(code) /* next token must be ; */
   144 
   144 #else
   145 #if INCLUDE_ALL_GCS
   145 #define CMSGC_ONLY(x)
   146 #define ALL_GCS_ONLY(x) x
   146 #define CMSGC_ONLY_ARG(x)
   147 #define NOT_ALL_GCS_RETURN        /* next token must be ; */
   147 #define NOT_CMSGC(x) x
   148 #define NOT_ALL_GCS_RETURN_(code) /* next token must be ; */
   148 #define NOT_CMSGC_RETURN        {}
   149 #else
   149 #define NOT_CMSGC_RETURN_(code) { return code; }
   150 #define ALL_GCS_ONLY(x)
   150 #endif // INCLUDE_CMSGC
   151 #define NOT_ALL_GCS_RETURN        {}
   151 
   152 #define NOT_ALL_GCS_RETURN_(code) { return code; }
   152 #ifndef INCLUDE_G1GC
   153 #endif // INCLUDE_ALL_GCS
   153 #define INCLUDE_G1GC 1
       
   154 #endif // INCLUDE_G1GC
       
   155 
       
   156 #if INCLUDE_G1GC
       
   157 #define G1GC_ONLY(x) x
       
   158 #define G1GC_ONLY_ARG(arg) arg,
       
   159 #define NOT_G1GC(x)
       
   160 #define NOT_G1GC_RETURN        /* next token must be ; */
       
   161 #define NOT_G1GC_RETURN_(code) /* next token must be ; */
       
   162 #else
       
   163 #define G1GC_ONLY(x)
       
   164 #define G1GC_ONLY_ARG(arg)
       
   165 #define NOT_G1GC(x) x
       
   166 #define NOT_G1GC_RETURN        {}
       
   167 #define NOT_G1GC_RETURN_(code) { return code; }
       
   168 #endif // INCLUDE_G1GC
       
   169 
       
   170 #ifndef INCLUDE_PARALLELGC
       
   171 #define INCLUDE_PARALLELGC 1
       
   172 #endif // INCLUDE_PARALLELGC
       
   173 
       
   174 #if INCLUDE_PARALLELGC
       
   175 #define PARALLELGC_ONLY(x) x
       
   176 #define PARALLELGC_ONLY_ARG(arg) arg,
       
   177 #define NOT_PARALLELGC(x)
       
   178 #define NOT_PARALLELGC_RETURN        /* next token must be ; */
       
   179 #define NOT_PARALLELGC_RETURN_(code) /* next token must be ; */
       
   180 #else
       
   181 #define PARALLELGC_ONLY(x)
       
   182 #define PARALLELGC_ONLY_ARG(arg)
       
   183 #define NOT_PARALLELGC(x) x
       
   184 #define NOT_PARALLELGC_RETURN        {}
       
   185 #define NOT_PARALLELGC_RETURN_(code) { return code; }
       
   186 #endif // INCLUDE_PARALLELGC
       
   187 
       
   188 #ifndef INCLUDE_SERIALGC
       
   189 #define INCLUDE_SERIALGC 1
       
   190 #endif // INCLUDE_SERIALGC
       
   191 
       
   192 #if INCLUDE_SERIALGC
       
   193 #define SERIALGC_ONLY(x) x
       
   194 #define SERIALGC_ONLY_ARG(arg) arg,
       
   195 #define NOT_SERIALGC(x)
       
   196 #define NOT_SERIALGC_RETURN        /* next token must be ; */
       
   197 #define NOT_SERIALGC_RETURN_(code) /* next token must be ; */
       
   198 #else
       
   199 #define SERIALGC_ONLY(x)
       
   200 #define SERIALGC_ONLY_ARG(arg)
       
   201 #define NOT_SERIALGC(x) x
       
   202 #define NOT_SERIALGC_RETURN        {}
       
   203 #define NOT_SERIALGC_RETURN_(code) { return code; }
       
   204 #endif // INCLUDE_SERIALGC
       
   205 
       
   206 #if INCLUDE_CMSGC || INCLUDE_G1GC || INCLUDE_PARALLELGC
       
   207 #define INCLUDE_NOT_ONLY_SERIALGC 1
       
   208 #else
       
   209 #define INCLUDE_NOT_ONLY_SERIALGC 0
       
   210 #endif
       
   211 
       
   212 #define INCLUDE_OOP_OOP_ITERATE_BACKWARDS INCLUDE_NOT_ONLY_SERIALGC
   154 
   213 
   155 #ifndef INCLUDE_NMT
   214 #ifndef INCLUDE_NMT
   156 #define INCLUDE_NMT 1
   215 #define INCLUDE_NMT 1
   157 #endif // INCLUDE_NMT
   216 #endif // INCLUDE_NMT
   158 
   217 
   522   #define ATOMIC_SHORT_PAIR(atomic_decl, non_atomic_decl)  \
   581   #define ATOMIC_SHORT_PAIR(atomic_decl, non_atomic_decl)  \
   523     atomic_decl;                                           \
   582     atomic_decl;                                           \
   524     non_atomic_decl
   583     non_atomic_decl
   525 #endif
   584 #endif
   526 
   585 
   527 #if INCLUDE_CDS && INCLUDE_ALL_GCS && defined(_LP64) && !defined(_WINDOWS)
   586 #if INCLUDE_CDS && INCLUDE_G1GC && defined(_LP64) && !defined(_WINDOWS)
   528 #define INCLUDE_CDS_JAVA_HEAP 1
   587 #define INCLUDE_CDS_JAVA_HEAP 1
   529 #define CDS_JAVA_HEAP_ONLY(x) x
   588 #define CDS_JAVA_HEAP_ONLY(x) x
   530 #define NOT_CDS_JAVA_HEAP(x)
   589 #define NOT_CDS_JAVA_HEAP(x)
   531 #define NOT_CDS_JAVA_HEAP_RETURN
   590 #define NOT_CDS_JAVA_HEAP_RETURN
   532 #define NOT_CDS_JAVA_HEAP_RETURN_(code)
   591 #define NOT_CDS_JAVA_HEAP_RETURN_(code)