8276795: Deprecate seldom used CDS flags
Reviewed-by: dholmes, ccheung, iklam
This commit is contained in:
parent
38345bd28d
commit
b3a62b4881
@ -528,6 +528,10 @@ static SpecialFlag const special_jvm_flags[] = {
|
||||
{ "FlightRecorder", JDK_Version::jdk(13), JDK_Version::undefined(), JDK_Version::undefined() },
|
||||
{ "FilterSpuriousWakeups", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::jdk(20) },
|
||||
{ "MinInliningThreshold", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::jdk(20) },
|
||||
{ "DumpSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
|
||||
{ "DynamicDumpSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
|
||||
{ "RequireSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
|
||||
{ "UseSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
|
||||
|
||||
// --- 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() },
|
||||
|
@ -1801,21 +1801,21 @@ const intx ObjectAlignmentInBytes = 8;
|
||||
/* Shared spaces */ \
|
||||
\
|
||||
product(bool, UseSharedSpaces, true, \
|
||||
"Use shared spaces for metadata") \
|
||||
"(Deprecated) Use shared spaces for metadata") \
|
||||
\
|
||||
product(bool, VerifySharedSpaces, false, \
|
||||
"Verify integrity of shared spaces") \
|
||||
\
|
||||
product(bool, RequireSharedSpaces, false, \
|
||||
"Require shared spaces for metadata") \
|
||||
"(Deprecated) Require shared spaces for metadata") \
|
||||
\
|
||||
product(bool, DumpSharedSpaces, false, \
|
||||
"Special mode: JVM reads a class list, loads classes, builds " \
|
||||
"shared spaces, and dumps the shared spaces to a file to be " \
|
||||
"used in future JVM runs") \
|
||||
"(Deprecated) Special mode: JVM reads a class list, loads " \
|
||||
"classes, builds shared spaces, and dumps the shared spaces to " \
|
||||
"a file to be used in future JVM runs") \
|
||||
\
|
||||
product(bool, DynamicDumpSharedSpaces, false, \
|
||||
"Dynamic archive") \
|
||||
"(Deprecated) Dynamic archive") \
|
||||
\
|
||||
product(bool, RecordDynamicDumpInfo, false, \
|
||||
"Record class info for jcmd VM.cds dynamic_dump") \
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -30,7 +30,7 @@
|
||||
*
|
||||
* @run main/othervm -ea -Diters=200 -Xint
|
||||
* compiler.intrinsics.klass.TestIsPrimitive
|
||||
* @run main/othervm -ea -XX:-UseSharedSpaces -Diters=30000 -XX:TieredStopAtLevel=1
|
||||
* @run main/othervm -ea -Xshare:off -Diters=30000 -XX:TieredStopAtLevel=1
|
||||
* compiler.intrinsics.klass.TestIsPrimitive
|
||||
* @run main/othervm -ea -Diters=30000 -XX:TieredStopAtLevel=4
|
||||
* compiler.intrinsics.klass.TestIsPrimitive
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -47,6 +47,10 @@ public class VMDeprecatedOptions {
|
||||
{"InitialRAMFraction", "64"},
|
||||
{"TLABStats", "false"},
|
||||
{"AllowRedefinitionToAddDeleteMethods", "true"},
|
||||
{"UseSharedSpaces", "false"},
|
||||
{"RequireSharedSpaces", "true"},
|
||||
{"DumpSharedSpaces", "true"},
|
||||
{"DynamicDumpSharedSpaces", "true"},
|
||||
|
||||
// deprecated alias flags (see also aliased_jvm_flags):
|
||||
{"DefaultMaxRAMFraction", "4"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user