294 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_ergonomics_flags(); 313 static void set_shared_spaces_flags(); 314 // Setup heap size 315 static void set_heap_size(); 316 // Based on automatic selection criteria, should the 317 // low pause collector be used. 318 static bool should_auto_select_low_pause_collector(); 319 320 // Bytecode rewriting 321 static void set_bytecode_flags(); 322 323 // Invocation API hooks 324 static abort_hook_t _abort_hook; 325 static exit_hook_t _exit_hook; 326 static vfprintf_hook_t _vfprintf_hook; 327 328 // System properties 329 static bool add_property(const char* prop); 330 331 // Aggressive optimization flags. 332 static void set_aggressive_opts_flags(); 333 | 294 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_ergonomics_flags(); 313 static void set_shared_spaces_flags(); 314 // limits the given memory size by the maximum amount of memory this process is 315 // currently allowed to allocate or reserve. 316 static julong limit_by_allocatable_memory(julong size); 317 // Setup heap size 318 static void set_heap_size(); 319 // Based on automatic selection criteria, should the 320 // low pause collector be used. 321 static bool should_auto_select_low_pause_collector(); 322 323 // Bytecode rewriting 324 static void set_bytecode_flags(); 325 326 // Invocation API hooks 327 static abort_hook_t _abort_hook; 328 static exit_hook_t _exit_hook; 329 static vfprintf_hook_t _vfprintf_hook; 330 331 // System properties 332 static bool add_property(const char* prop); 333 334 // Aggressive optimization flags. 335 static void set_aggressive_opts_flags(); 336 |