< prev index next >

src/hotspot/cpu/sparc/globals_sparc.hpp

Print this page

@@ -78,52 +78,44 @@
 
 define_pd_global(bool, CompactStrings, true);
 
 define_pd_global(intx, InitArrayShortSize, 8*BytesPerLong);
 
-#define ARCH_FLAGS(develop, \
-                   product, \
-                   diagnostic, \
-                   experimental, \
-                   notproduct, \
-                   range, \
-                   constraint) \
-                                                                            \
-  product(intx, UseVIS, 99,                                                 \
-          "Highest supported VIS instructions set on SPARC")                \
-          range(0, 99)                                                      \
-                                                                            \
-  product(bool, UseCBCond, false,                                           \
-          "Use compare and branch instruction on SPARC")                    \
-                                                                            \
-  product(bool, UseMPMUL, false,                                            \
-          "Use multi-precision multiply instruction (mpmul) on SPARC")      \
-                                                                            \
-  product(bool, UseBlockZeroing, false,                                     \
-          "Use special cpu instructions for block zeroing")                 \
-                                                                            \
-  product(intx, BlockZeroingLowLimit, 2048,                                 \
-          "Minimum size in bytes when block zeroing will be used")          \
-          range(1, max_jint)                                                \
-                                                                            \
-  product(bool, UseBlockCopy, false,                                        \
-          "Use special cpu instructions for block copy")                    \
-                                                                            \
-  product(intx, BlockCopyLowLimit, 2048,                                    \
-          "Minimum size in bytes when block copy will be used")             \
-          range(1, max_jint)                                                \
-                                                                            \
-  product(bool, UseNiagaraInstrs, false,                                    \
-          "Use Niagara-efficient instruction subset")                       \
-                                                                            \
-  develop(bool, UseCASForSwap, false,                                       \
-          "Do not use swap instructions, but only CAS (in a loop) on SPARC")\
-                                                                            \
-  product(uintx,  ArraycopySrcPrefetchDistance, 0,                          \
-          "Distance to prefetch source array in arraycopy")                 \
-          constraint(ArraycopySrcPrefetchDistanceConstraintFunc, AfterErgo) \
-                                                                            \
-  product(uintx,  ArraycopyDstPrefetchDistance, 0,                          \
-          "Distance to prefetch destination array in arraycopy")            \
-          constraint(ArraycopyDstPrefetchDistanceConstraintFunc, AfterErgo) \
+#include "runtime/flags/jvmFlag.hpp"
+PRODUCT_FLAG(intx,     UseVIS, 99, JVMFlag::RANGE,
+                       "Highest supported VIS instructions set on SPARC");
+   FLAG_RANGE(         UseVIS, 0, 99);
 
+PRODUCT_FLAG(bool,     UseCBCond, false, JVMFlag::DEFAULT,
+                       "Use compare and branch instruction on SPARC");
+
+PRODUCT_FLAG(bool,     UseMPMUL, false, JVMFlag::DEFAULT,
+                       "Use multi-precision multiply instruction (mpmul) on SPARC");
+
+PRODUCT_FLAG(bool,     UseBlockZeroing, false, JVMFlag::DEFAULT,
+                       "Use special cpu instructions for block zeroing");
+
+PRODUCT_FLAG(intx,     BlockZeroingLowLimit, 2048, JVMFlag::RANGE,
+                       "Minimum size in bytes when block zeroing will be used");
+   FLAG_RANGE(         BlockZeroingLowLimit, 1, max_jint);
+
+PRODUCT_FLAG(bool,     UseBlockCopy, false, JVMFlag::DEFAULT,
+                       "Use special cpu instructions for block copy");
+
+PRODUCT_FLAG(intx,     BlockCopyLowLimit, 2048, JVMFlag::RANGE,
+                       "Minimum size in bytes when block copy will be used");
+   FLAG_RANGE(         BlockCopyLowLimit, 1, max_jint);
+
+PRODUCT_FLAG(bool,     UseNiagaraInstrs, false, JVMFlag::DEFAULT,
+                       "Use Niagara-efficient instruction subset");
+
+DEVELOP_FLAG(bool,     UseCASForSwap, false, JVMFlag::DEFAULT,
+                       "Do not use swap instructions, but only CAS (in a loop) on SPARC");
+
+PRODUCT_FLAG(uintx,    ArraycopySrcPrefetchDistance, 0, JVMFlag::CONSTRAINT,
+                       "Distance to prefetch source array in arraycopy");
+   FLAG_CONSTRAINT(    ArraycopySrcPrefetchDistance, (void*)ArraycopySrcPrefetchDistanceConstraintFunc, JVMFlag::AfterErgo);
+
+PRODUCT_FLAG(uintx,    ArraycopyDstPrefetchDistance, 0, JVMFlag::CONSTRAINT,
+                       "Distance to prefetch destination array in arraycopy");
+   FLAG_CONSTRAINT(    ArraycopyDstPrefetchDistance, (void*)ArraycopyDstPrefetchDistanceConstraintFunc, JVMFlag::AfterErgo);
 #endif // CPU_SPARC_GLOBALS_SPARC_HPP
< prev index next >