329 // Scale compile thresholds
330 static intx get_scaled_compile_threshold(intx threshold);
331 static intx get_scaled_freq_log(intx freq_log);
332 // Tiered
333 static void set_tiered_flags();
334 static int get_min_number_of_compiler_threads();
335 // CMS/ParNew garbage collectors
336 static void set_parnew_gc_flags();
337 static void set_cms_and_parnew_gc_flags();
338 // UseParallel[Old]GC
339 static void set_parallel_gc_flags();
340 // Garbage-First (UseG1GC)
341 static void set_g1_gc_flags();
342 // GC ergonomics
343 static void set_conservative_max_heap_alignment();
344 static void set_use_compressed_oops();
345 static void set_use_compressed_klass_ptrs();
346 static void select_gc();
347 static void set_ergonomics_flags();
348 static void set_shared_spaces_flags();
349 static void set_gc_specific_flags();
350 // limits the given memory size by the maximum amount of memory this process is
351 // currently allowed to allocate or reserve.
352 static julong limit_by_allocatable_memory(julong size);
353 // Setup heap size
354 static void set_heap_size();
355 // Based on automatic selection criteria, should the
356 // low pause collector be used.
357 static bool should_auto_select_low_pause_collector();
358
359 // Bytecode rewriting
360 static void set_bytecode_flags();
361
362 // Invocation API hooks
363 static abort_hook_t _abort_hook;
364 static exit_hook_t _exit_hook;
365 static vfprintf_hook_t _vfprintf_hook;
366
367 // System properties
368 static bool add_property(const char* prop);
369
441 static char** CompileOnlyMethods;
442 static bool* CompileOnlyAllClasses;
443
444 static short InterpretOnlyClassesNum;
445 static short InterpretOnlyClassesMax;
446 static char** InterpretOnlyClasses;
447 static bool* InterpretOnlyAllMethods;
448
449 static bool CheckCompileOnly;
450
451 static char* SharedArchivePath;
452
453 public:
454 // Parses the arguments, first phase
455 static jint parse(const JavaVMInitArgs* args);
456 // Apply ergonomics
457 static jint apply_ergo();
458 // Adjusts the arguments after the OS have adjusted the arguments
459 static jint adjust_after_os();
460
461 static inline bool gc_selected(); // whether a gc has been selected
462 static void select_gc_ergonomically();
463
464 // Verifies that the given value will fit as a MinHeapFreeRatio. If not, an error
465 // message is returned in the provided buffer.
466 static bool verify_MinHeapFreeRatio(FormatBuffer<80>& err_msg, uintx min_heap_free_ratio);
467
468 // Verifies that the given value will fit as a MaxHeapFreeRatio. If not, an error
469 // message is returned in the provided buffer.
470 static bool verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_heap_free_ratio);
471
472 // Check for consistency in the selection of the garbage collector.
473 static bool check_gc_consistency_user(); // Check user-selected gc
474 static inline bool check_gc_consistency_ergo(); // Check ergonomic-selected gc
475 static void check_deprecated_gcs();
476 static void check_deprecated_gc_flags();
477 // Check consistency or otherwise of VM argument settings
478 static bool check_vm_args_consistency();
479 // Check stack pages settings
480 static bool check_stack_pages();
|
329 // Scale compile thresholds
330 static intx get_scaled_compile_threshold(intx threshold);
331 static intx get_scaled_freq_log(intx freq_log);
332 // Tiered
333 static void set_tiered_flags();
334 static int get_min_number_of_compiler_threads();
335 // CMS/ParNew garbage collectors
336 static void set_parnew_gc_flags();
337 static void set_cms_and_parnew_gc_flags();
338 // UseParallel[Old]GC
339 static void set_parallel_gc_flags();
340 // Garbage-First (UseG1GC)
341 static void set_g1_gc_flags();
342 // GC ergonomics
343 static void set_conservative_max_heap_alignment();
344 static void set_use_compressed_oops();
345 static void set_use_compressed_klass_ptrs();
346 static void select_gc();
347 static void set_ergonomics_flags();
348 static void set_shared_spaces_flags();
349 // limits the given memory size by the maximum amount of memory this process is
350 // currently allowed to allocate or reserve.
351 static julong limit_by_allocatable_memory(julong size);
352 // Setup heap size
353 static void set_heap_size();
354 // Based on automatic selection criteria, should the
355 // low pause collector be used.
356 static bool should_auto_select_low_pause_collector();
357
358 // Bytecode rewriting
359 static void set_bytecode_flags();
360
361 // Invocation API hooks
362 static abort_hook_t _abort_hook;
363 static exit_hook_t _exit_hook;
364 static vfprintf_hook_t _vfprintf_hook;
365
366 // System properties
367 static bool add_property(const char* prop);
368
440 static char** CompileOnlyMethods;
441 static bool* CompileOnlyAllClasses;
442
443 static short InterpretOnlyClassesNum;
444 static short InterpretOnlyClassesMax;
445 static char** InterpretOnlyClasses;
446 static bool* InterpretOnlyAllMethods;
447
448 static bool CheckCompileOnly;
449
450 static char* SharedArchivePath;
451
452 public:
453 // Parses the arguments, first phase
454 static jint parse(const JavaVMInitArgs* args);
455 // Apply ergonomics
456 static jint apply_ergo();
457 // Adjusts the arguments after the OS have adjusted the arguments
458 static jint adjust_after_os();
459
460 static void set_gc_specific_flags();
461 static inline bool gc_selected(); // whether a gc has been selected
462 static void select_gc_ergonomically();
463
464 // Verifies that the given value will fit as a MinHeapFreeRatio. If not, an error
465 // message is returned in the provided buffer.
466 static bool verify_MinHeapFreeRatio(FormatBuffer<80>& err_msg, uintx min_heap_free_ratio);
467
468 // Verifies that the given value will fit as a MaxHeapFreeRatio. If not, an error
469 // message is returned in the provided buffer.
470 static bool verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_heap_free_ratio);
471
472 // Check for consistency in the selection of the garbage collector.
473 static bool check_gc_consistency_user(); // Check user-selected gc
474 static inline bool check_gc_consistency_ergo(); // Check ergonomic-selected gc
475 static void check_deprecated_gcs();
476 static void check_deprecated_gc_flags();
477 // Check consistency or otherwise of VM argument settings
478 static bool check_vm_args_consistency();
479 // Check stack pages settings
480 static bool check_stack_pages();
|