mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
Merge
This commit is contained in:
commit
f8cf8b295d
190 changed files with 1561 additions and 1006 deletions
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include "runtime/java.hpp"
|
||||
#include "runtime/perfData.hpp"
|
||||
#include "utilities/debug.hpp"
|
||||
#include "utilities/top.hpp"
|
||||
|
||||
// Arguments parses the command line and recognizes options
|
||||
|
@ -370,11 +371,16 @@ class Arguments : AllStatic {
|
|||
static jint parse_vm_init_args(const JavaVMInitArgs* args);
|
||||
static jint parse_each_vm_init_arg(const JavaVMInitArgs* args, SysClassPath* scp_p, bool* scp_assembly_required_p, Flag::Flags origin);
|
||||
static jint finalize_vm_init_args(SysClassPath* scp_p, bool scp_assembly_required);
|
||||
static bool is_bad_option(const JavaVMOption* option, jboolean ignore,
|
||||
const char* option_type);
|
||||
static bool is_bad_option(const JavaVMOption* option, jboolean ignore, const char* option_type);
|
||||
|
||||
static bool is_bad_option(const JavaVMOption* option, jboolean ignore) {
|
||||
return is_bad_option(option, ignore, NULL);
|
||||
}
|
||||
|
||||
static bool is_percentage(uintx val) {
|
||||
return val <= 100;
|
||||
}
|
||||
|
||||
static bool verify_interval(uintx val, uintx min,
|
||||
uintx max, const char* name);
|
||||
static bool verify_min_value(intx val, intx min, const char* name);
|
||||
|
@ -440,11 +446,20 @@ class Arguments : AllStatic {
|
|||
static jint apply_ergo();
|
||||
// Adjusts the arguments after the OS have adjusted the arguments
|
||||
static jint adjust_after_os();
|
||||
|
||||
// Verifies that the given value will fit as a MinHeapFreeRatio. If not, an error
|
||||
// message is returned in the provided buffer.
|
||||
static bool verify_MinHeapFreeRatio(FormatBuffer<80>& err_msg, uintx min_heap_free_ratio);
|
||||
|
||||
// Verifies that the given value will fit as a MaxHeapFreeRatio. If not, an error
|
||||
// message is returned in the provided buffer.
|
||||
static bool verify_MaxHeapFreeRatio(FormatBuffer<80>& err_msg, uintx max_heap_free_ratio);
|
||||
|
||||
// Check for consistency in the selection of the garbage collector.
|
||||
static bool check_gc_consistency();
|
||||
static void check_deprecated_gcs();
|
||||
static void check_deprecated_gc_flags();
|
||||
// Check consistecy or otherwise of VM argument settings
|
||||
// Check consistency or otherwise of VM argument settings
|
||||
static bool check_vm_args_consistency();
|
||||
// Check stack pages settings
|
||||
static bool check_stack_pages();
|
||||
|
@ -494,7 +509,7 @@ class Arguments : AllStatic {
|
|||
// -Xprof
|
||||
static bool has_profile() { return _has_profile; }
|
||||
|
||||
// -Xms, -Xmx
|
||||
// -Xms
|
||||
static uintx min_heap_size() { return _min_heap_size; }
|
||||
static void set_min_heap_size(uintx v) { _min_heap_size = v; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue