From 46b2e547a9f680a2a93fecc2b223e895c26e96d7 Mon Sep 17 00:00:00 2001 From: Tobias Holenstein Date: Wed, 20 Apr 2022 09:41:53 +0000 Subject: [PATCH] 8075816: Deprecate AliasLevel flag since it is broken Reviewed-by: thartmann, kvn --- src/hotspot/share/opto/c2_globals.hpp | 3 ++- src/hotspot/share/runtime/arguments.cpp | 1 + .../hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hotspot/share/opto/c2_globals.hpp b/src/hotspot/share/opto/c2_globals.hpp index 7f96f71f7f8..ed8994083e0 100644 --- a/src/hotspot/share/opto/c2_globals.hpp +++ b/src/hotspot/share/opto/c2_globals.hpp @@ -630,7 +630,8 @@ range(1, max_intx) \ \ product(intx, AliasLevel, 3, \ - "0 for no aliasing, 1 for oop/field/static/array split, " \ + "(Deprecated) 0 for no aliasing, " \ + "1 for oop/field/static/array split, " \ "2 for class split, 3 for unique instances") \ range(0, 3) \ constraint(AliasLevelConstraintFunc,AfterErgo) \ diff --git a/src/hotspot/share/runtime/arguments.cpp b/src/hotspot/share/runtime/arguments.cpp index 13d68d84a14..057c2b931a3 100644 --- a/src/hotspot/share/runtime/arguments.cpp +++ b/src/hotspot/share/runtime/arguments.cpp @@ -542,6 +542,7 @@ static SpecialFlag const special_jvm_flags[] = { { "ExtendedDTraceProbes", JDK_Version::jdk(19), JDK_Version::jdk(20), JDK_Version::jdk(21) }, { "UseContainerCpuShares", JDK_Version::jdk(19), JDK_Version::jdk(20), JDK_Version::jdk(21) }, { "PreferContainerQuotaForCPUCount", JDK_Version::jdk(19), JDK_Version::jdk(20), JDK_Version::jdk(21) }, + { "AliasLevel", JDK_Version::jdk(19), JDK_Version::jdk(20), JDK_Version::jdk(21) }, // --- 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() }, diff --git a/test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java b/test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java index ee93c740cf1..4a6982cbbf7 100644 --- a/test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java +++ b/test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java @@ -56,6 +56,7 @@ public class VMDeprecatedOptions { {"InitialRAMFraction", "64"}, {"TLABStats", "false"}, {"AllowRedefinitionToAddDeleteMethods", "true"}, + {"AliasLevel", "3"}, // deprecated alias flags (see also aliased_jvm_flags): {"DefaultMaxRAMFraction", "4"},