< prev index next >

src/share/vm/runtime/globals_extension.hpp

Print this page




 174           C2_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE,
 175           C2_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE)
 176 #endif
 177  ARCH_FLAGS(ARCH_DEVELOP_FLAG_MEMBER_WITH_TYPE,
 178           ARCH_PRODUCT_FLAG_MEMBER_WITH_TYPE,
 179           ARCH_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
 180           ARCH_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE,
 181           ARCH_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE)
 182  COMMANDLINEFLAGWITHTYPE_EXT
 183  NUM_CommandLineFlagWithType
 184 } CommandLineFlagWithType;
 185 
 186 #define FLAG_IS_DEFAULT(name)         (CommandLineFlagsEx::is_default(FLAG_MEMBER(name)))
 187 #define FLAG_IS_ERGO(name)            (CommandLineFlagsEx::is_ergo(FLAG_MEMBER(name)))
 188 #define FLAG_IS_CMDLINE(name)         (CommandLineFlagsEx::is_cmdline(FLAG_MEMBER(name)))
 189 
 190 #define FLAG_SET_DEFAULT(name, value) ((name) = (value))
 191 
 192 #define FLAG_SET_CMDLINE(type, name, value) (CommandLineFlagsEx::type##AtPut(FLAG_MEMBER_WITH_TYPE(name,type), (type)(value), Flag::COMMAND_LINE))
 193 #define FLAG_SET_ERGO(type, name, value)    (CommandLineFlagsEx::type##AtPut(FLAG_MEMBER_WITH_TYPE(name,type), (type)(value), Flag::ERGONOMIC))

 194 
 195 // Can't put the following in CommandLineFlags because
 196 // of a circular dependency on the enum definition.
 197 class CommandLineFlagsEx : CommandLineFlags {
 198  public:
 199   static void boolAtPut(CommandLineFlagWithType flag, bool value, Flag::Flags origin);
 200   static void intxAtPut(CommandLineFlagWithType flag, intx value, Flag::Flags origin);
 201   static void uintxAtPut(CommandLineFlagWithType flag, uintx value, Flag::Flags origin);
 202   static void uint64_tAtPut(CommandLineFlagWithType flag, uint64_t value, Flag::Flags origin);
 203   static void doubleAtPut(CommandLineFlagWithType flag, double value, Flag::Flags origin);
 204   // Contract:  Flag will make private copy of the incoming value
 205   static void ccstrAtPut(CommandLineFlagWithType flag, ccstr value, Flag::Flags origin);
 206 
 207   static bool is_default(CommandLineFlag flag);
 208   static bool is_ergo(CommandLineFlag flag);
 209   static bool is_cmdline(CommandLineFlag flag);
 210 };
 211 
 212 #endif // SHARE_VM_RUNTIME_GLOBALS_EXTENSION_HPP


 174           C2_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE,
 175           C2_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE)
 176 #endif
 177  ARCH_FLAGS(ARCH_DEVELOP_FLAG_MEMBER_WITH_TYPE,
 178           ARCH_PRODUCT_FLAG_MEMBER_WITH_TYPE,
 179           ARCH_DIAGNOSTIC_FLAG_MEMBER_WITH_TYPE,
 180           ARCH_EXPERIMENTAL_FLAG_MEMBER_WITH_TYPE,
 181           ARCH_NOTPRODUCT_FLAG_MEMBER_WITH_TYPE)
 182  COMMANDLINEFLAGWITHTYPE_EXT
 183  NUM_CommandLineFlagWithType
 184 } CommandLineFlagWithType;
 185 
 186 #define FLAG_IS_DEFAULT(name)         (CommandLineFlagsEx::is_default(FLAG_MEMBER(name)))
 187 #define FLAG_IS_ERGO(name)            (CommandLineFlagsEx::is_ergo(FLAG_MEMBER(name)))
 188 #define FLAG_IS_CMDLINE(name)         (CommandLineFlagsEx::is_cmdline(FLAG_MEMBER(name)))
 189 
 190 #define FLAG_SET_DEFAULT(name, value) ((name) = (value))
 191 
 192 #define FLAG_SET_CMDLINE(type, name, value) (CommandLineFlagsEx::type##AtPut(FLAG_MEMBER_WITH_TYPE(name,type), (type)(value), Flag::COMMAND_LINE))
 193 #define FLAG_SET_ERGO(type, name, value)    (CommandLineFlagsEx::type##AtPut(FLAG_MEMBER_WITH_TYPE(name,type), (type)(value), Flag::ERGONOMIC))
 194 #define FLAG_SET_MGMT(type, name, value)    (CommandLineFlagsEx::type##AtPut(FLAG_MEMBER_WITH_TYPE(name, type), (type)(value), Flag::MANAGEMENT))
 195 
 196 // Can't put the following in CommandLineFlags because
 197 // of a circular dependency on the enum definition.
 198 class CommandLineFlagsEx : CommandLineFlags {
 199  public:
 200   static void boolAtPut(CommandLineFlagWithType flag, bool value, Flag::Flags origin);
 201   static void intxAtPut(CommandLineFlagWithType flag, intx value, Flag::Flags origin);
 202   static void uintxAtPut(CommandLineFlagWithType flag, uintx value, Flag::Flags origin);
 203   static void uint64_tAtPut(CommandLineFlagWithType flag, uint64_t value, Flag::Flags origin);
 204   static void doubleAtPut(CommandLineFlagWithType flag, double value, Flag::Flags origin);
 205   // Contract:  Flag will make private copy of the incoming value
 206   static void ccstrAtPut(CommandLineFlagWithType flag, ccstr value, Flag::Flags origin);
 207 
 208   static bool is_default(CommandLineFlag flag);
 209   static bool is_ergo(CommandLineFlag flag);
 210   static bool is_cmdline(CommandLineFlag flag);
 211 };
 212 
 213 #endif // SHARE_VM_RUNTIME_GLOBALS_EXTENSION_HPP
< prev index next >