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 static void set_gc_specific_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
359 static abort_hook_t _abort_hook;
360 static exit_hook_t _exit_hook;
361 static vfprintf_hook_t _vfprintf_hook;
362
363 // System properties
364 static bool add_property(const char* prop);
365
437 static char** CompileOnlyMethods;
438 static bool* CompileOnlyAllClasses;
439
440 static short InterpretOnlyClassesNum;
441 static short InterpretOnlyClassesMax;
442 static char** InterpretOnlyClasses;
443 static bool* InterpretOnlyAllMethods;
444
445 static bool CheckCompileOnly;
446
447 static char* SharedArchivePath;
448
449 public:
450 // Parses the arguments, first phase
451 static jint parse(const JavaVMInitArgs* args);
452 // Apply ergonomics
453 static jint apply_ergo();
454 // Adjusts the arguments after the OS have adjusted the arguments
455 static jint adjust_after_os();
456
457 static inline bool gc_selected(); // whether a gc has been selected
458 static void select_gc_ergonomically();
459
460 // Verifies that the given value will fit as a MinHeapFreeRatio. If not, an error
461 // message is returned in the provided buffer.
462 static bool verify_MinHeapFreeRatio(FormatBuffer<80>& err_msg, uintx min_heap_free_ratio);
463
464 // Verifies that the given value will fit as a MaxHeapFreeRatio. If not, an error
465 // message is returned in the provided buffer.
466 static bool verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_heap_free_ratio);
467
468 // Check for consistency in the selection of the garbage collector.
469 static bool check_gc_consistency_user(); // Check user-selected gc
470 static inline bool check_gc_consistency_ergo(); // Check ergonomic-selected gc
471 static void check_deprecated_gcs();
472 static void check_deprecated_gc_flags();
473 // Check consistecy or otherwise of VM argument settings
474 static bool check_vm_args_consistency();
475 // Check stack pages settings
476 static bool check_stack_pages();
|
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
358 static abort_hook_t _abort_hook;
359 static exit_hook_t _exit_hook;
360 static vfprintf_hook_t _vfprintf_hook;
361
362 // System properties
363 static bool add_property(const char* prop);
364
436 static char** CompileOnlyMethods;
437 static bool* CompileOnlyAllClasses;
438
439 static short InterpretOnlyClassesNum;
440 static short InterpretOnlyClassesMax;
441 static char** InterpretOnlyClasses;
442 static bool* InterpretOnlyAllMethods;
443
444 static bool CheckCompileOnly;
445
446 static char* SharedArchivePath;
447
448 public:
449 // Parses the arguments, first phase
450 static jint parse(const JavaVMInitArgs* args);
451 // Apply ergonomics
452 static jint apply_ergo();
453 // Adjusts the arguments after the OS have adjusted the arguments
454 static jint adjust_after_os();
455
456 static void set_gc_specific_flags();
457 static inline bool gc_selected(); // whether a gc has been selected
458 static void select_gc_ergonomically();
459
460 // Verifies that the given value will fit as a MinHeapFreeRatio. If not, an error
461 // message is returned in the provided buffer.
462 static bool verify_MinHeapFreeRatio(FormatBuffer<80>& err_msg, uintx min_heap_free_ratio);
463
464 // Verifies that the given value will fit as a MaxHeapFreeRatio. If not, an error
465 // message is returned in the provided buffer.
466 static bool verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_heap_free_ratio);
467
468 // Check for consistency in the selection of the garbage collector.
469 static bool check_gc_consistency_user(); // Check user-selected gc
470 static inline bool check_gc_consistency_ergo(); // Check ergonomic-selected gc
471 static void check_deprecated_gcs();
472 static void check_deprecated_gc_flags();
473 // Check consistecy or otherwise of VM argument settings
474 static bool check_vm_args_consistency();
475 // Check stack pages settings
476 static bool check_stack_pages();
|