295 // Used to save default settings 296 static bool _AlwaysCompileLoopMethods; 297 static bool _UseOnStackReplacement; 298 static bool _BackgroundCompilation; 299 static bool _ClipInlining; 300 static bool _CIDynamicCompilePriority; 301 302 // Tiered 303 static void set_tiered_flags(); 304 // CMS/ParNew garbage collectors 305 static void set_parnew_gc_flags(); 306 static void set_cms_and_parnew_gc_flags(); 307 // UseParallel[Old]GC 308 static void set_parallel_gc_flags(); 309 // Garbage-First (UseG1GC) 310 static void set_g1_gc_flags(); 311 // GC ergonomics 312 static void set_use_compressed_oops(); 313 static void set_ergonomics_flags(); 314 static void set_shared_spaces_flags(); 315 // Setup heap size 316 static void set_heap_size(); 317 // Based on automatic selection criteria, should the 318 // low pause collector be used. 319 static bool should_auto_select_low_pause_collector(); 320 321 // Bytecode rewriting 322 static void set_bytecode_flags(); 323 324 // Invocation API hooks 325 static abort_hook_t _abort_hook; 326 static exit_hook_t _exit_hook; 327 static vfprintf_hook_t _vfprintf_hook; 328 329 // System properties 330 static bool add_property(const char* prop); 331 332 // Aggressive optimization flags. 333 static void set_aggressive_opts_flags(); 334 | 295 // Used to save default settings 296 static bool _AlwaysCompileLoopMethods; 297 static bool _UseOnStackReplacement; 298 static bool _BackgroundCompilation; 299 static bool _ClipInlining; 300 static bool _CIDynamicCompilePriority; 301 302 // Tiered 303 static void set_tiered_flags(); 304 // CMS/ParNew garbage collectors 305 static void set_parnew_gc_flags(); 306 static void set_cms_and_parnew_gc_flags(); 307 // UseParallel[Old]GC 308 static void set_parallel_gc_flags(); 309 // Garbage-First (UseG1GC) 310 static void set_g1_gc_flags(); 311 // GC ergonomics 312 static void set_use_compressed_oops(); 313 static void set_ergonomics_flags(); 314 static void set_shared_spaces_flags(); 315 // limits the given memory size by the maximum amount of memory this process is 316 // currently allowed to allocate or reserve. 317 static julong limit_by_allocatable_memory(julong size); 318 // Setup heap size 319 static void set_heap_size(); 320 // Based on automatic selection criteria, should the 321 // low pause collector be used. 322 static bool should_auto_select_low_pause_collector(); 323 324 // Bytecode rewriting 325 static void set_bytecode_flags(); 326 327 // Invocation API hooks 328 static abort_hook_t _abort_hook; 329 static exit_hook_t _exit_hook; 330 static vfprintf_hook_t _vfprintf_hook; 331 332 // System properties 333 static bool add_property(const char* prop); 334 335 // Aggressive optimization flags. 336 static void set_aggressive_opts_flags(); 337 |