8245215: Obsolete InitialBootClassLoaderMetaspaceSize and UseLargePagesInMetaspace

Reviewed-by: lfoltan, ccheung, stuefe, coleenp
This commit is contained in:
Harold Seigel 2020-11-13 13:13:43 +00:00
parent e9956fec9a
commit 56ea7864d4
3 changed files with 2 additions and 29 deletions
src/hotspot/share/runtime
test/hotspot/jtreg/runtime/CompressedOops

@ -529,8 +529,6 @@ static SpecialFlag const special_jvm_flags[] = {
{ "BiasedLockingDecayTime", JDK_Version::jdk(15), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "UseOptoBiasInlining", JDK_Version::jdk(15), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "PrintPreciseBiasedLockingStatistics", JDK_Version::jdk(15), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "InitialBootClassLoaderMetaspaceSize", JDK_Version::jdk(15), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "UseLargePagesInMetaspace", JDK_Version::jdk(15), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "CriticalJNINatives", JDK_Version::jdk(16), JDK_Version::jdk(17), JDK_Version::jdk(18) },
// --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in:
@ -553,6 +551,8 @@ static SpecialFlag const special_jvm_flags[] = {
{ "UseNewFieldLayout", JDK_Version::jdk(15), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "UseSemaphoreGCThreadsSynchronization", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "ForceNUMA", JDK_Version::jdk(15), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "InitialBootClassLoaderMetaspaceSize", JDK_Version::jdk(15), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "UseLargePagesInMetaspace", JDK_Version::jdk(15), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "InsertMemBarAfterArraycopy", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "Debugging", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },
{ "UseRDPCForConstantTableBase", JDK_Version::undefined(), JDK_Version::jdk(16), JDK_Version::jdk(17) },

@ -197,10 +197,6 @@ const intx ObjectAlignmentInBytes = 8;
develop(bool, LargePagesIndividualAllocationInjectError, false, \
"Fail large pages individual allocation") \
\
product(bool, UseLargePagesInMetaspace, false, \
"(Deprecated) Use large page memory in metaspace. " \
"Only used if UseLargePages is enabled.") \
\
product(bool, UseNUMA, false, \
"Use NUMA if available") \
\
@ -946,11 +942,6 @@ const intx ObjectAlignmentInBytes = 8;
product(bool, IgnoreEmptyClassPaths, false, \
"Ignore empty path elements in -classpath") \
\
product(size_t, InitialBootClassLoaderMetaspaceSize, \
NOT_LP64(2200*K) LP64_ONLY(4*M), \
"(Deprecated) Initial size of the boot class loader data metaspace") \
range(30*K, max_uintx/BytesPerWord) \
\
product(bool, PrintHeapAtSIGBREAK, true, \
"Print heap layout in response to SIGBREAK") \
\

@ -120,23 +120,6 @@ public class CompressedClassPointers {
output.shouldHaveExitValue(0);
}
// Using large pages for heap and metaspace.
// Note that this is still unexciting since the compressed class space always uses small pages;
// UseLargePagesInMetaspace only affects non-class metaspace.
public static void largePagesForHeapAndMetaspaceTest() throws Exception {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
"-XX:+UnlockDiagnosticVMOptions",
"-Xmx128m",
"-XX:+UseLargePages", "-XX:+UseLargePagesInMetaspace",
logging_option,
"-XX:+VerifyBeforeGC", "-version");
OutputAnalyzer output = new OutputAnalyzer(pb.start());
if (testNarrowKlassBase()) {
output.shouldContain("Narrow klass base:");
}
output.shouldHaveExitValue(0);
}
public static void heapBaseMinAddressTest() throws Exception {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
"-XX:HeapBaseMinAddress=1m",
@ -311,7 +294,6 @@ public class CompressedClassPointers {
smallHeapTestWith1G();
largeHeapTest();
largePagesForHeapTest();
largePagesForHeapAndMetaspaceTest();
heapBaseMinAddressTest();
sharingTest();