< prev index next >

src/hotspot/share/runtime/arguments.hpp

Print this page




 630   static bool  init_shared_archive_paths() NOT_CDS_RETURN_(false);
 631 
 632   // Operation modi
 633   static Mode mode()                        { return _mode; }
 634   static bool is_interpreter_only() { return mode() == _int; }
 635 
 636   // preview features
 637   static void set_enable_preview() { _enable_preview = true; }
 638   static bool enable_preview() { return _enable_preview; }
 639 
 640   // Utility: copies src into buf, replacing "%%" with "%" and "%p" with pid.
 641   static bool copy_expand_pid(const char* src, size_t srclen, char* buf, size_t buflen);
 642 
 643   static void check_unsupported_dumping_properties() NOT_CDS_RETURN;
 644 
 645   static bool check_unsupported_cds_runtime_properties() NOT_CDS_RETURN0;
 646 
 647   static bool atojulong(const char *s, julong* result);
 648 
 649   static bool has_jfr_option() NOT_JFR_RETURN_(false);






 650 };
 651 
 652 // Disable options not supported in this release, with a warning if they
 653 // were explicitly requested on the command-line
 654 #define UNSUPPORTED_OPTION(opt)                          \
 655 do {                                                     \
 656   if (opt) {                                             \
 657     if (FLAG_IS_CMDLINE(opt)) {                          \
 658       warning("-XX:+" #opt " not supported in this VM"); \
 659     }                                                    \
 660     FLAG_SET_DEFAULT(opt, false);                        \
 661   }                                                      \
 662 } while(0)
 663 
 664 // similar to UNSUPPORTED_OPTION but sets flag to NULL
 665 #define UNSUPPORTED_OPTION_NULL(opt)                     \
 666 do {                                                     \
 667   if (opt) {                                             \
 668     if (FLAG_IS_CMDLINE(opt)) {                          \
 669       warning("-XX flag " #opt " not supported in this VM"); \


 630   static bool  init_shared_archive_paths() NOT_CDS_RETURN_(false);
 631 
 632   // Operation modi
 633   static Mode mode()                        { return _mode; }
 634   static bool is_interpreter_only() { return mode() == _int; }
 635 
 636   // preview features
 637   static void set_enable_preview() { _enable_preview = true; }
 638   static bool enable_preview() { return _enable_preview; }
 639 
 640   // Utility: copies src into buf, replacing "%%" with "%" and "%p" with pid.
 641   static bool copy_expand_pid(const char* src, size_t srclen, char* buf, size_t buflen);
 642 
 643   static void check_unsupported_dumping_properties() NOT_CDS_RETURN;
 644 
 645   static bool check_unsupported_cds_runtime_properties() NOT_CDS_RETURN0;
 646 
 647   static bool atojulong(const char *s, julong* result);
 648 
 649   static bool has_jfr_option() NOT_JFR_RETURN_(false);
 650 
 651   static bool is_dumping_archive() { return DumpSharedSpaces || DynamicDumpSharedSpaces; }
 652 
 653   static void assert_is_dumping_archive() {
 654     assert(Arguments::is_dumping_archive(), "dump time only");
 655   }
 656 };
 657 
 658 // Disable options not supported in this release, with a warning if they
 659 // were explicitly requested on the command-line
 660 #define UNSUPPORTED_OPTION(opt)                          \
 661 do {                                                     \
 662   if (opt) {                                             \
 663     if (FLAG_IS_CMDLINE(opt)) {                          \
 664       warning("-XX:+" #opt " not supported in this VM"); \
 665     }                                                    \
 666     FLAG_SET_DEFAULT(opt, false);                        \
 667   }                                                      \
 668 } while(0)
 669 
 670 // similar to UNSUPPORTED_OPTION but sets flag to NULL
 671 #define UNSUPPORTED_OPTION_NULL(opt)                     \
 672 do {                                                     \
 673   if (opt) {                                             \
 674     if (FLAG_IS_CMDLINE(opt)) {                          \
 675       warning("-XX flag " #opt " not supported in this VM"); \
< prev index next >