8324771: Obsolete RAMFraction related flags
Reviewed-by: dholmes, mbaesken, tschatzl
This commit is contained in:
parent
ec6c35c4ac
commit
725314fb73
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -309,23 +309,6 @@
|
|||||||
"MaxRAM * MaxRAMPercentage / 100") \
|
"MaxRAM * MaxRAMPercentage / 100") \
|
||||||
range(0, max_uintx) \
|
range(0, max_uintx) \
|
||||||
\
|
\
|
||||||
product(uintx, MaxRAMFraction, 4, \
|
|
||||||
"Maximum fraction (1/n) of real memory used for maximum heap " \
|
|
||||||
"size. " \
|
|
||||||
"Deprecated, use MaxRAMPercentage instead") \
|
|
||||||
range(1, max_uintx) \
|
|
||||||
\
|
|
||||||
product(uintx, MinRAMFraction, 2, \
|
|
||||||
"Minimum fraction (1/n) of real memory used for maximum heap " \
|
|
||||||
"size on systems with small physical memory size. " \
|
|
||||||
"Deprecated, use MinRAMPercentage instead") \
|
|
||||||
range(1, max_uintx) \
|
|
||||||
\
|
|
||||||
product(uintx, InitialRAMFraction, 64, \
|
|
||||||
"Fraction (1/n) of real memory used for initial heap size. " \
|
|
||||||
"Deprecated, use InitialRAMPercentage instead") \
|
|
||||||
range(1, max_uintx) \
|
|
||||||
\
|
|
||||||
product(double, MaxRAMPercentage, 25.0, \
|
product(double, MaxRAMPercentage, 25.0, \
|
||||||
"Maximum percentage of real memory used for maximum heap size") \
|
"Maximum percentage of real memory used for maximum heap size") \
|
||||||
range(0.0, 100.0) \
|
range(0.0, 100.0) \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2017, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -39,7 +39,6 @@ void ZArguments::initialize_alignments() {
|
|||||||
|
|
||||||
void ZArguments::initialize_heap_flags_and_sizes() {
|
void ZArguments::initialize_heap_flags_and_sizes() {
|
||||||
if (!FLAG_IS_CMDLINE(MaxHeapSize) &&
|
if (!FLAG_IS_CMDLINE(MaxHeapSize) &&
|
||||||
!FLAG_IS_CMDLINE(MaxRAMFraction) &&
|
|
||||||
!FLAG_IS_CMDLINE(MaxRAMPercentage) &&
|
!FLAG_IS_CMDLINE(MaxRAMPercentage) &&
|
||||||
!FLAG_IS_CMDLINE(SoftMaxHeapSize)) {
|
!FLAG_IS_CMDLINE(SoftMaxHeapSize)) {
|
||||||
// We are really just guessing how much memory the program needs.
|
// We are really just guessing how much memory the program needs.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -494,9 +494,6 @@ void Arguments::init_version_specific_system_properties() {
|
|||||||
static SpecialFlag const special_jvm_flags[] = {
|
static SpecialFlag const special_jvm_flags[] = {
|
||||||
// -------------- Deprecated Flags --------------
|
// -------------- Deprecated Flags --------------
|
||||||
// --- Non-alias flags - sorted by obsolete_in then expired_in:
|
// --- Non-alias flags - sorted by obsolete_in then expired_in:
|
||||||
{ "MaxRAMFraction", JDK_Version::jdk(10), JDK_Version::undefined(), JDK_Version::undefined() },
|
|
||||||
{ "MinRAMFraction", JDK_Version::jdk(10), JDK_Version::undefined(), JDK_Version::undefined() },
|
|
||||||
{ "InitialRAMFraction", JDK_Version::jdk(10), JDK_Version::undefined(), JDK_Version::undefined() },
|
|
||||||
{ "AllowRedefinitionToAddDeleteMethods", JDK_Version::jdk(13), JDK_Version::undefined(), JDK_Version::undefined() },
|
{ "AllowRedefinitionToAddDeleteMethods", JDK_Version::jdk(13), JDK_Version::undefined(), JDK_Version::undefined() },
|
||||||
{ "FlightRecorder", JDK_Version::jdk(13), JDK_Version::undefined(), JDK_Version::undefined() },
|
{ "FlightRecorder", JDK_Version::jdk(13), JDK_Version::undefined(), JDK_Version::undefined() },
|
||||||
{ "DumpSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
|
{ "DumpSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
|
||||||
@ -506,7 +503,6 @@ static SpecialFlag const special_jvm_flags[] = {
|
|||||||
{ "RegisterFinalizersAtInit", JDK_Version::jdk(22), JDK_Version::jdk(23), JDK_Version::jdk(24) },
|
{ "RegisterFinalizersAtInit", JDK_Version::jdk(22), JDK_Version::jdk(23), JDK_Version::jdk(24) },
|
||||||
|
|
||||||
// --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in:
|
// --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in:
|
||||||
{ "DefaultMaxRAMFraction", JDK_Version::jdk(8), JDK_Version::undefined(), JDK_Version::undefined() },
|
|
||||||
{ "CreateMinidumpOnCrash", JDK_Version::jdk(9), JDK_Version::undefined(), JDK_Version::undefined() },
|
{ "CreateMinidumpOnCrash", JDK_Version::jdk(9), JDK_Version::undefined(), JDK_Version::undefined() },
|
||||||
{ "TLABStats", JDK_Version::jdk(12), JDK_Version::undefined(), JDK_Version::undefined() },
|
{ "TLABStats", JDK_Version::jdk(12), JDK_Version::undefined(), JDK_Version::undefined() },
|
||||||
|
|
||||||
@ -526,6 +522,10 @@ static SpecialFlag const special_jvm_flags[] = {
|
|||||||
|
|
||||||
{ "AdaptiveSizePolicyCollectionCostMargin", JDK_Version::undefined(), JDK_Version::jdk(23), JDK_Version::jdk(24) },
|
{ "AdaptiveSizePolicyCollectionCostMargin", JDK_Version::undefined(), JDK_Version::jdk(23), JDK_Version::jdk(24) },
|
||||||
{ "MaxGCMinorPauseMillis", JDK_Version::jdk(8), JDK_Version::jdk(23), JDK_Version::jdk(24) },
|
{ "MaxGCMinorPauseMillis", JDK_Version::jdk(8), JDK_Version::jdk(23), JDK_Version::jdk(24) },
|
||||||
|
{ "MaxRAMFraction", JDK_Version::jdk(10), JDK_Version::jdk(23), JDK_Version::jdk(24) },
|
||||||
|
{ "MinRAMFraction", JDK_Version::jdk(10), JDK_Version::jdk(23), JDK_Version::jdk(24) },
|
||||||
|
{ "InitialRAMFraction", JDK_Version::jdk(10), JDK_Version::jdk(23), JDK_Version::jdk(24) },
|
||||||
|
{ "DefaultMaxRAMFraction", JDK_Version::jdk(8), JDK_Version::jdk(23), JDK_Version::jdk(24) },
|
||||||
#ifdef ASSERT
|
#ifdef ASSERT
|
||||||
{ "DummyObsoleteTestFlag", JDK_Version::undefined(), JDK_Version::jdk(18), JDK_Version::undefined() },
|
{ "DummyObsoleteTestFlag", JDK_Version::undefined(), JDK_Version::jdk(18), JDK_Version::undefined() },
|
||||||
#endif
|
#endif
|
||||||
@ -551,7 +551,6 @@ typedef struct {
|
|||||||
} AliasedFlag;
|
} AliasedFlag;
|
||||||
|
|
||||||
static AliasedFlag const aliased_jvm_flags[] = {
|
static AliasedFlag const aliased_jvm_flags[] = {
|
||||||
{ "DefaultMaxRAMFraction", "MaxRAMFraction" },
|
|
||||||
{ "CreateMinidumpOnCrash", "CreateCoredumpOnCrash" },
|
{ "CreateMinidumpOnCrash", "CreateCoredumpOnCrash" },
|
||||||
{ nullptr, nullptr}
|
{ nullptr, nullptr}
|
||||||
};
|
};
|
||||||
@ -1479,11 +1478,8 @@ void Arguments::set_heap_size() {
|
|||||||
// available os physical memory, not our MaxRAM limit,
|
// available os physical memory, not our MaxRAM limit,
|
||||||
// unless MaxRAM is also specified.
|
// unless MaxRAM is also specified.
|
||||||
bool override_coop_limit = (!FLAG_IS_DEFAULT(MaxRAMPercentage) ||
|
bool override_coop_limit = (!FLAG_IS_DEFAULT(MaxRAMPercentage) ||
|
||||||
!FLAG_IS_DEFAULT(MaxRAMFraction) ||
|
|
||||||
!FLAG_IS_DEFAULT(MinRAMPercentage) ||
|
!FLAG_IS_DEFAULT(MinRAMPercentage) ||
|
||||||
!FLAG_IS_DEFAULT(MinRAMFraction) ||
|
|
||||||
!FLAG_IS_DEFAULT(InitialRAMPercentage) ||
|
!FLAG_IS_DEFAULT(InitialRAMPercentage) ||
|
||||||
!FLAG_IS_DEFAULT(InitialRAMFraction) ||
|
|
||||||
!FLAG_IS_DEFAULT(MaxRAM));
|
!FLAG_IS_DEFAULT(MaxRAM));
|
||||||
if (override_coop_limit) {
|
if (override_coop_limit) {
|
||||||
if (FLAG_IS_DEFAULT(MaxRAM)) {
|
if (FLAG_IS_DEFAULT(MaxRAM)) {
|
||||||
@ -1497,20 +1493,6 @@ void Arguments::set_heap_size() {
|
|||||||
: (julong)MaxRAM;
|
: (julong)MaxRAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Convert deprecated flags
|
|
||||||
if (FLAG_IS_DEFAULT(MaxRAMPercentage) &&
|
|
||||||
!FLAG_IS_DEFAULT(MaxRAMFraction))
|
|
||||||
MaxRAMPercentage = 100.0 / (double)MaxRAMFraction;
|
|
||||||
|
|
||||||
if (FLAG_IS_DEFAULT(MinRAMPercentage) &&
|
|
||||||
!FLAG_IS_DEFAULT(MinRAMFraction))
|
|
||||||
MinRAMPercentage = 100.0 / (double)MinRAMFraction;
|
|
||||||
|
|
||||||
if (FLAG_IS_DEFAULT(InitialRAMPercentage) &&
|
|
||||||
!FLAG_IS_DEFAULT(InitialRAMFraction))
|
|
||||||
InitialRAMPercentage = 100.0 / (double)InitialRAMFraction;
|
|
||||||
|
|
||||||
// If the maximum heap size has not been set with -Xmx,
|
// If the maximum heap size has not been set with -Xmx,
|
||||||
// then set it as fraction of the size of physical memory,
|
// then set it as fraction of the size of physical memory,
|
||||||
// respecting the maximum and minimum sizes of the heap.
|
// respecting the maximum and minimum sizes of the heap.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -275,7 +275,6 @@ void JVMFlag::print_on(outputStream* st, bool withComments, bool printRanges) co
|
|||||||
//
|
//
|
||||||
// Sample output:
|
// Sample output:
|
||||||
// intx MinPassesBeforeFlush [ 0 ... 9223372036854775807 ] {diagnostic} {default}
|
// intx MinPassesBeforeFlush [ 0 ... 9223372036854775807 ] {diagnostic} {default}
|
||||||
// uintx MinRAMFraction [ 1 ... 18446744073709551615 ] {product} {default}
|
|
||||||
// double MinRAMPercentage [ 0.000 ... 100.000 ] {product} {default}
|
// double MinRAMPercentage [ 0.000 ... 100.000 ] {product} {default}
|
||||||
// uintx MinSurvivorRatio [ 3 ... 18446744073709551615 ] {product} {default}
|
// uintx MinSurvivorRatio [ 3 ... 18446744073709551615 ] {product} {default}
|
||||||
// size_t MinTLABSize [ 1 ... 9223372036854775807 ] {product} {default}
|
// size_t MinTLABSize [ 1 ... 9223372036854775807 ] {product} {default}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -41,7 +41,6 @@ public class VMAliasOptions {
|
|||||||
* (true/false/n/string)}.
|
* (true/false/n/string)}.
|
||||||
*/
|
*/
|
||||||
public static final String[][] ALIAS_OPTIONS = {
|
public static final String[][] ALIAS_OPTIONS = {
|
||||||
{"DefaultMaxRAMFraction", "MaxRAMFraction", "1032"},
|
|
||||||
{"CreateMinidumpOnCrash", "CreateCoredumpOnCrash", "false" },
|
{"CreateMinidumpOnCrash", "CreateCoredumpOnCrash", "false" },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -56,14 +56,10 @@ public class VMDeprecatedOptions {
|
|||||||
ArrayList<String[]> deprecated = new ArrayList(
|
ArrayList<String[]> deprecated = new ArrayList(
|
||||||
Arrays.asList(new String[][] {
|
Arrays.asList(new String[][] {
|
||||||
// deprecated non-alias flags:
|
// deprecated non-alias flags:
|
||||||
{"MaxRAMFraction", "8"},
|
|
||||||
{"MinRAMFraction", "2"},
|
|
||||||
{"InitialRAMFraction", "64"},
|
|
||||||
{"TLABStats", "false"},
|
{"TLABStats", "false"},
|
||||||
{"AllowRedefinitionToAddDeleteMethods", "true"},
|
{"AllowRedefinitionToAddDeleteMethods", "true"},
|
||||||
|
|
||||||
// deprecated alias flags (see also aliased_jvm_flags):
|
// deprecated alias flags (see also aliased_jvm_flags):
|
||||||
{"DefaultMaxRAMFraction", "4"},
|
|
||||||
{"CreateMinidumpOnCrash", "false"}
|
{"CreateMinidumpOnCrash", "false"}
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user