< prev index next >

src/share/vm/runtime/arguments.hpp

Print this page
rev 8961 : [mq]: diff-shenandoah.patch


 317   static bool xdebug_mode()             { return _xdebug_mode; }
 318 
 319   // Used to save default settings
 320   static bool _AlwaysCompileLoopMethods;
 321   static bool _UseOnStackReplacement;
 322   static bool _BackgroundCompilation;
 323   static bool _ClipInlining;
 324   static bool _CIDynamicCompilePriority;
 325   static intx _Tier3InvokeNotifyFreqLog;
 326   static intx _Tier4InvocationThreshold;
 327 
 328   // Tiered
 329   static void set_tiered_flags();
 330   // CMS/ParNew garbage collectors
 331   static void set_parnew_gc_flags();
 332   static void set_cms_and_parnew_gc_flags();
 333   // UseParallel[Old]GC
 334   static void set_parallel_gc_flags();
 335   // Garbage-First (UseG1GC)
 336   static void set_g1_gc_flags();


 337   // GC ergonomics
 338   static void set_conservative_max_heap_alignment();
 339   static void set_use_compressed_oops();
 340   static void set_use_compressed_klass_ptrs();
 341   static void select_gc();
 342   static void set_ergonomics_flags();
 343   static void set_shared_spaces_flags();
 344   // limits the given memory size by the maximum amount of memory this process is
 345   // currently allowed to allocate or reserve.
 346   static julong limit_by_allocatable_memory(julong size);
 347   // Setup heap size
 348   static void set_heap_size();
 349   // Based on automatic selection criteria, should the
 350   // low pause collector be used.
 351   static bool should_auto_select_low_pause_collector();
 352 
 353   // Bytecode rewriting
 354   static void set_bytecode_flags();
 355 
 356   // Invocation API hooks


 592   static void append_sysclasspath(const char *value) { _sun_boot_class_path->append_value(value); }
 593 
 594   static char* get_java_home() { return _java_home->value(); }
 595   static char* get_dll_dir() { return _sun_boot_library_path->value(); }
 596   static char* get_sysclasspath() { return _sun_boot_class_path->value(); }
 597   static char* get_ext_dirs()        { return _ext_dirs;  }
 598   static char* get_appclasspath() { return _java_class_path->value(); }
 599   static void  fix_appclasspath();
 600 
 601 
 602   // Operation modi
 603   static Mode mode()                { return _mode; }
 604   static bool is_interpreter_only() { return mode() == _int; }
 605 
 606 
 607   // Utility: copies src into buf, replacing "%%" with "%" and "%p" with pid.
 608   static bool copy_expand_pid(const char* src, size_t srclen, char* buf, size_t buflen);
 609 };
 610 
 611 bool Arguments::gc_selected() {
 612   return UseConcMarkSweepGC || UseG1GC || UseParallelGC || UseParallelOldGC || UseSerialGC;
 613 }
 614 
 615 // Disable options not supported in this release, with a warning if they
 616 // were explicitly requested on the command-line
 617 #define UNSUPPORTED_OPTION(opt, description)                    \
 618 do {                                                            \
 619   if (opt) {                                                    \
 620     if (FLAG_IS_CMDLINE(opt)) {                                 \
 621       warning(description " is disabled in this release.");     \
 622     }                                                           \
 623     FLAG_SET_DEFAULT(opt, false);                               \
 624   }                                                             \
 625 } while(0)
 626 
 627 #endif // SHARE_VM_RUNTIME_ARGUMENTS_HPP


 317   static bool xdebug_mode()             { return _xdebug_mode; }
 318 
 319   // Used to save default settings
 320   static bool _AlwaysCompileLoopMethods;
 321   static bool _UseOnStackReplacement;
 322   static bool _BackgroundCompilation;
 323   static bool _ClipInlining;
 324   static bool _CIDynamicCompilePriority;
 325   static intx _Tier3InvokeNotifyFreqLog;
 326   static intx _Tier4InvocationThreshold;
 327 
 328   // Tiered
 329   static void set_tiered_flags();
 330   // CMS/ParNew garbage collectors
 331   static void set_parnew_gc_flags();
 332   static void set_cms_and_parnew_gc_flags();
 333   // UseParallel[Old]GC
 334   static void set_parallel_gc_flags();
 335   // Garbage-First (UseG1GC)
 336   static void set_g1_gc_flags();
 337   // Shenandoah GC (UseShenandoahGC)
 338   static void set_shenandoah_gc_flags();
 339   // GC ergonomics
 340   static void set_conservative_max_heap_alignment();
 341   static void set_use_compressed_oops();
 342   static void set_use_compressed_klass_ptrs();
 343   static void select_gc();
 344   static void set_ergonomics_flags();
 345   static void set_shared_spaces_flags();
 346   // limits the given memory size by the maximum amount of memory this process is
 347   // currently allowed to allocate or reserve.
 348   static julong limit_by_allocatable_memory(julong size);
 349   // Setup heap size
 350   static void set_heap_size();
 351   // Based on automatic selection criteria, should the
 352   // low pause collector be used.
 353   static bool should_auto_select_low_pause_collector();
 354 
 355   // Bytecode rewriting
 356   static void set_bytecode_flags();
 357 
 358   // Invocation API hooks


 594   static void append_sysclasspath(const char *value) { _sun_boot_class_path->append_value(value); }
 595 
 596   static char* get_java_home() { return _java_home->value(); }
 597   static char* get_dll_dir() { return _sun_boot_library_path->value(); }
 598   static char* get_sysclasspath() { return _sun_boot_class_path->value(); }
 599   static char* get_ext_dirs()        { return _ext_dirs;  }
 600   static char* get_appclasspath() { return _java_class_path->value(); }
 601   static void  fix_appclasspath();
 602 
 603 
 604   // Operation modi
 605   static Mode mode()                { return _mode; }
 606   static bool is_interpreter_only() { return mode() == _int; }
 607 
 608 
 609   // Utility: copies src into buf, replacing "%%" with "%" and "%p" with pid.
 610   static bool copy_expand_pid(const char* src, size_t srclen, char* buf, size_t buflen);
 611 };
 612 
 613 bool Arguments::gc_selected() {
 614   return UseConcMarkSweepGC || UseG1GC || UseParallelGC || UseParallelOldGC || UseSerialGC || UseShenandoahGC;
 615 }
 616 
 617 // Disable options not supported in this release, with a warning if they
 618 // were explicitly requested on the command-line
 619 #define UNSUPPORTED_OPTION(opt, description)                    \
 620 do {                                                            \
 621   if (opt) {                                                    \
 622     if (FLAG_IS_CMDLINE(opt)) {                                 \
 623       warning(description " is disabled in this release.");     \
 624     }                                                           \
 625     FLAG_SET_DEFAULT(opt, false);                               \
 626   }                                                             \
 627 } while(0)
 628 
 629 #endif // SHARE_VM_RUNTIME_ARGUMENTS_HPP
< prev index next >