--- old/src/hotspot/os/bsd/globals_bsd.hpp 2020-04-05 21:34:54.526067460 -0700 +++ new/src/hotspot/os/bsd/globals_bsd.hpp 2020-04-05 21:34:54.178054360 -0700 @@ -26,28 +26,19 @@ #define OS_BSD_GLOBALS_BSD_HPP // -// Defines Bsd specific flags. They are not available on other platforms. +// Declare Bsd specific flags. They are not available on other platforms. // -#define RUNTIME_OS_FLAGS(develop, \ - develop_pd, \ - product, \ - product_pd, \ - diagnostic, \ - diagnostic_pd, \ - notproduct, \ - range, \ - constraint) \ - \ - product(bool, UseOprofile, false, \ - "enable support for Oprofile profiler") \ - \ - /* NB: The default value of UseBsdPosixThreadCPUClocks may be */ \ - /* overridden in Arguments::parse_each_vm_init_arg. */ \ - product(bool, UseBsdPosixThreadCPUClocks, true, \ - "enable fast Bsd Posix clocks where available") \ +#include "runtime/flags/jvmFlag.hpp" +PRODUCT_FLAG(bool, UseOprofile, false, JVMFlag::DEFAULT, + "enable support for Oprofile profiler"); + + // NB: The default value of UseBsdPosixThreadCPUClocks may be + // overridden in Arguments::parse_each_vm_init_arg. +PRODUCT_FLAG(bool, UseBsdPosixThreadCPUClocks, true, JVMFlag::DEFAULT, + "enable fast Bsd Posix clocks where available"); // -// Defines Bsd-specific default values. The flags are available on all +// Define Bsd-specific default values. The flags are available on all // platforms, but they may have different default values on other platforms. // define_pd_global(bool, UseLargePages, false);