318 static void set_xdebug_mode(bool arg) { _xdebug_mode = arg; }
319 static bool xdebug_mode() { return _xdebug_mode; }
320
321 // Used to save default settings
322 static bool _AlwaysCompileLoopMethods;
323 static bool _UseOnStackReplacement;
324 static bool _BackgroundCompilation;
325 static bool _ClipInlining;
326 static bool _CIDynamicCompilePriority;
327
328 // Tiered
329 static void set_tiered_flags();
330 static int get_min_number_of_compiler_threads();
331 // CMS/ParNew garbage collectors
332 static void set_parnew_gc_flags();
333 static void set_cms_and_parnew_gc_flags();
334 // UseParallel[Old]GC
335 static void set_parallel_gc_flags();
336 // Garbage-First (UseG1GC)
337 static void set_g1_gc_flags();
338 // GC ergonomics
339 static void set_conservative_max_heap_alignment();
340 static void set_use_compressed_oops();
341 static void set_use_compressed_klass_ptrs();
342 static void select_gc();
343 static void set_ergonomics_flags();
344 static void set_shared_spaces_flags();
345 // limits the given memory size by the maximum amount of memory this process is
346 // currently allowed to allocate or reserve.
347 static julong limit_by_allocatable_memory(julong size);
348 // Setup heap size
349 static void set_heap_size();
350 // Based on automatic selection criteria, should the
351 // low pause collector be used.
352 static bool should_auto_select_low_pause_collector();
353
354 // Bytecode rewriting
355 static void set_bytecode_flags();
356
357 // Invocation API hooks
596 static char* get_dll_dir() { return _sun_boot_library_path->value(); }
597 static char* get_endorsed_dir() { return _java_endorsed_dirs->value(); }
598 static char* get_sysclasspath() { return _sun_boot_class_path->value(); }
599 static char* get_meta_index_path() { return _meta_index_path; }
600 static char* get_meta_index_dir() { return _meta_index_dir; }
601 static char* get_ext_dirs() { return _java_ext_dirs->value(); }
602 static char* get_appclasspath() { return _java_class_path->value(); }
603 static void fix_appclasspath();
604
605 // Operation modi
606 static Mode mode() { return _mode; }
607 static bool is_interpreter_only() { return mode() == _int; }
608
609
610 // Utility: copies src into buf, replacing "%%" with "%" and "%p" with pid.
611 static bool copy_expand_pid(const char* src, size_t srclen, char* buf, size_t buflen);
612 };
613
614 bool Arguments::gc_selected() {
615 return UseConcMarkSweepGC || UseG1GC || UseParallelGC || UseParallelOldGC ||
616 UseParNewGC || UseSerialGC;
617 }
618
619 #endif // SHARE_VM_RUNTIME_ARGUMENTS_HPP
|
318 static void set_xdebug_mode(bool arg) { _xdebug_mode = arg; }
319 static bool xdebug_mode() { return _xdebug_mode; }
320
321 // Used to save default settings
322 static bool _AlwaysCompileLoopMethods;
323 static bool _UseOnStackReplacement;
324 static bool _BackgroundCompilation;
325 static bool _ClipInlining;
326 static bool _CIDynamicCompilePriority;
327
328 // Tiered
329 static void set_tiered_flags();
330 static int get_min_number_of_compiler_threads();
331 // CMS/ParNew garbage collectors
332 static void set_parnew_gc_flags();
333 static void set_cms_and_parnew_gc_flags();
334 // UseParallel[Old]GC
335 static void set_parallel_gc_flags();
336 // Garbage-First (UseG1GC)
337 static void set_g1_gc_flags();
338 // Shenandoah GC (UseShenandoahGC)
339 static void set_shenandoah_gc_flags();
340 // GC ergonomics
341 static void set_conservative_max_heap_alignment();
342 static void set_use_compressed_oops();
343 static void set_use_compressed_klass_ptrs();
344 static void select_gc();
345 static void set_ergonomics_flags();
346 static void set_shared_spaces_flags();
347 // limits the given memory size by the maximum amount of memory this process is
348 // currently allowed to allocate or reserve.
349 static julong limit_by_allocatable_memory(julong size);
350 // Setup heap size
351 static void set_heap_size();
352 // Based on automatic selection criteria, should the
353 // low pause collector be used.
354 static bool should_auto_select_low_pause_collector();
355
356 // Bytecode rewriting
357 static void set_bytecode_flags();
358
359 // Invocation API hooks
598 static char* get_dll_dir() { return _sun_boot_library_path->value(); }
599 static char* get_endorsed_dir() { return _java_endorsed_dirs->value(); }
600 static char* get_sysclasspath() { return _sun_boot_class_path->value(); }
601 static char* get_meta_index_path() { return _meta_index_path; }
602 static char* get_meta_index_dir() { return _meta_index_dir; }
603 static char* get_ext_dirs() { return _java_ext_dirs->value(); }
604 static char* get_appclasspath() { return _java_class_path->value(); }
605 static void fix_appclasspath();
606
607 // Operation modi
608 static Mode mode() { return _mode; }
609 static bool is_interpreter_only() { return mode() == _int; }
610
611
612 // Utility: copies src into buf, replacing "%%" with "%" and "%p" with pid.
613 static bool copy_expand_pid(const char* src, size_t srclen, char* buf, size_t buflen);
614 };
615
616 bool Arguments::gc_selected() {
617 return UseConcMarkSweepGC || UseG1GC || UseParallelGC || UseParallelOldGC ||
618 UseParNewGC || UseSerialGC || UseShenandoahGC;
619 }
620
621 #endif // SHARE_VM_RUNTIME_ARGUMENTS_HPP
|