mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
Merge
This commit is contained in:
commit
6fd53f05d1
848 changed files with 32487 additions and 16221 deletions
|
@ -203,6 +203,10 @@ static ObsoleteFlag obsolete_jvm_flags[] = {
|
|||
JDK_Version::jdk_update(6,18), JDK_Version::jdk(7) },
|
||||
{ "UseDepthFirstScavengeOrder",
|
||||
JDK_Version::jdk_update(6,22), JDK_Version::jdk(7) },
|
||||
{ "HandlePromotionFailure",
|
||||
JDK_Version::jdk_update(6,24), JDK_Version::jdk(8) },
|
||||
{ "MaxLiveObjectEvacuationRatio",
|
||||
JDK_Version::jdk_update(6,24), JDK_Version::jdk(8) },
|
||||
{ NULL, JDK_Version(0), JDK_Version(0) }
|
||||
};
|
||||
|
||||
|
@ -966,26 +970,54 @@ static void no_shared_spaces() {
|
|||
}
|
||||
}
|
||||
|
||||
void Arguments::check_compressed_oops_compat() {
|
||||
#ifdef _LP64
|
||||
assert(UseCompressedOops, "Precondition");
|
||||
# if defined(COMPILER1) && !defined(TIERED)
|
||||
// Until c1 supports compressed oops turn them off.
|
||||
FLAG_SET_DEFAULT(UseCompressedOops, false);
|
||||
# else
|
||||
// Is it on by default or set on ergonomically
|
||||
bool is_on_by_default = FLAG_IS_DEFAULT(UseCompressedOops) || FLAG_IS_ERGO(UseCompressedOops);
|
||||
|
||||
// Tiered currently doesn't work with compressed oops
|
||||
if (TieredCompilation) {
|
||||
if (is_on_by_default) {
|
||||
FLAG_SET_DEFAULT(UseCompressedOops, false);
|
||||
return;
|
||||
} else {
|
||||
vm_exit_during_initialization(
|
||||
"Tiered compilation is not supported with compressed oops yet", NULL);
|
||||
}
|
||||
}
|
||||
|
||||
// If dumping an archive or forcing its use, disable compressed oops if possible
|
||||
if (DumpSharedSpaces || RequireSharedSpaces) {
|
||||
if (is_on_by_default) {
|
||||
FLAG_SET_DEFAULT(UseCompressedOops, false);
|
||||
return;
|
||||
} else {
|
||||
vm_exit_during_initialization(
|
||||
"Class Data Sharing is not supported with compressed oops yet", NULL);
|
||||
}
|
||||
} else if (UseSharedSpaces) {
|
||||
// UseSharedSpaces is on by default. With compressed oops, we turn it off.
|
||||
FLAG_SET_DEFAULT(UseSharedSpaces, false);
|
||||
}
|
||||
|
||||
# endif // defined(COMPILER1) && !defined(TIERED)
|
||||
#endif // _LP64
|
||||
}
|
||||
|
||||
void Arguments::set_tiered_flags() {
|
||||
if (FLAG_IS_DEFAULT(CompilationPolicyChoice)) {
|
||||
FLAG_SET_DEFAULT(CompilationPolicyChoice, 2);
|
||||
}
|
||||
|
||||
if (CompilationPolicyChoice < 2) {
|
||||
vm_exit_during_initialization(
|
||||
"Incompatible compilation policy selected", NULL);
|
||||
}
|
||||
|
||||
#ifdef _LP64
|
||||
if (FLAG_IS_DEFAULT(UseCompressedOops) || FLAG_IS_ERGO(UseCompressedOops)) {
|
||||
UseCompressedOops = false;
|
||||
}
|
||||
if (UseCompressedOops) {
|
||||
vm_exit_during_initialization(
|
||||
"Tiered compilation is not supported with compressed oops yet", NULL);
|
||||
}
|
||||
#endif
|
||||
// Increase the code cache size - tiered compiles a lot more.
|
||||
// Increase the code cache size - tiered compiles a lot more.
|
||||
if (FLAG_IS_DEFAULT(ReservedCodeCacheSize)) {
|
||||
FLAG_SET_DEFAULT(ReservedCodeCacheSize, ReservedCodeCacheSize * 2);
|
||||
}
|
||||
|
@ -1741,8 +1773,6 @@ bool Arguments::check_vm_args_consistency() {
|
|||
status = false;
|
||||
}
|
||||
|
||||
status = status && verify_percentage(MaxLiveObjectEvacuationRatio,
|
||||
"MaxLiveObjectEvacuationRatio");
|
||||
status = status && verify_percentage(AdaptiveSizePolicyWeight,
|
||||
"AdaptiveSizePolicyWeight");
|
||||
status = status && verify_percentage(AdaptivePermSizeWeight, "AdaptivePermSizeWeight");
|
||||
|
@ -2846,6 +2876,7 @@ jint Arguments::parse_options_environment_variable(const char* name, SysClassPat
|
|||
return JNI_OK;
|
||||
}
|
||||
|
||||
|
||||
// Parse entry point called from JNI_CreateJavaVM
|
||||
|
||||
jint Arguments::parse(const JavaVMInitArgs* args) {
|
||||
|
@ -2988,17 +3019,6 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
|
|||
PrintGC = true;
|
||||
}
|
||||
|
||||
#if defined(_LP64) && defined(COMPILER1) && !defined(TIERED)
|
||||
UseCompressedOops = false;
|
||||
#endif
|
||||
|
||||
#if defined(_LP64)
|
||||
if ((DumpSharedSpaces || RequireSharedSpaces) && UseCompressedOops) {
|
||||
// Disable compressed oops with shared spaces
|
||||
UseCompressedOops = false;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Set object alignment values.
|
||||
set_object_alignment();
|
||||
|
||||
|
@ -3013,13 +3033,10 @@ jint Arguments::parse(const JavaVMInitArgs* args) {
|
|||
set_ergonomics_flags();
|
||||
|
||||
#ifdef _LP64
|
||||
// XXX JSR 292 currently does not support compressed oops.
|
||||
if (EnableMethodHandles && UseCompressedOops) {
|
||||
if (FLAG_IS_DEFAULT(UseCompressedOops) || FLAG_IS_ERGO(UseCompressedOops)) {
|
||||
UseCompressedOops = false;
|
||||
}
|
||||
if (UseCompressedOops) {
|
||||
check_compressed_oops_compat();
|
||||
}
|
||||
#endif // _LP64
|
||||
#endif
|
||||
|
||||
// Check the GC selections again.
|
||||
if (!check_gc_consistency()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue