8140284: Deprecate -XX:+UnsyncloadClass and -XX:+MustCallLoadClassInternal
authorhseigel
Wed, 12 Jul 2017 08:07:58 -0400
changeset 46655 d5ecb8ef2b93
parent 46651 a0aef4e7599b
child 46656 ff494a8dcce9
8140284: Deprecate -XX:+UnsyncloadClass and -XX:+MustCallLoadClassInternal Summary: Add the two options to the deprecate list. Reviewed-by: acorn, gtriantafill
hotspot/src/share/vm/runtime/arguments.cpp
hotspot/test/runtime/CommandLine/VMDeprecatedOptions.java
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Wed Jul 12 11:59:51 2017 +0200
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Wed Jul 12 08:07:58 2017 -0400
@@ -319,7 +319,7 @@
  *               Add a deprecation warning for an option (or alias) by adding an entry in the
  *               "special_jvm_flags" table and setting the "deprecated_in" field.
  *               Often an option "deprecated" in one major release will
- *               be made "obsolete" in the next. In this case the entry should also have it's
+ *               be made "obsolete" in the next. In this case the entry should also have its
  *               "obsolete_in" field set.
  *
  *     OBSOLETE: An option that has been removed (and deleted from globals.hpp), but is still accepted
@@ -380,8 +380,10 @@
   { "UseConcMarkSweepGC",           JDK_Version::jdk(9), JDK_Version::undefined(), 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() },
-  { "CreateMinidumpOnCrash",        JDK_Version::jdk(9), JDK_Version::undefined(), JDK_Version::undefined() },
+  { "DefaultMaxRAMFraction",        JDK_Version::jdk(8),  JDK_Version::undefined(), JDK_Version::undefined() },
+  { "CreateMinidumpOnCrash",        JDK_Version::jdk(9),  JDK_Version::undefined(), JDK_Version::undefined() },
+  { "MustCallLoadClassInternal",    JDK_Version::jdk(10), JDK_Version::undefined(), JDK_Version::undefined() },
+  { "UnsyncloadClass",              JDK_Version::jdk(10), JDK_Version::undefined(), JDK_Version::undefined() },
 
   // -------------- Obsolete Flags - sorted by expired_in --------------
   { "ConvertSleepToYield",           JDK_Version::jdk(9),      JDK_Version::jdk(10), JDK_Version::jdk(11) },
--- a/hotspot/test/runtime/CommandLine/VMDeprecatedOptions.java	Wed Jul 12 11:59:51 2017 +0200
+++ b/hotspot/test/runtime/CommandLine/VMDeprecatedOptions.java	Wed Jul 12 08:07:58 2017 -0400
@@ -40,7 +40,9 @@
      */
     public static final String[][] DEPRECATED_OPTIONS = {
         // deprecated non-alias flags:
-        {"MaxGCMinorPauseMillis", "1032"},
+        {"MaxGCMinorPauseMillis",     "1032"},
+        {"MustCallLoadClassInternal", "false"},
+        {"UnsyncloadClass",           "false"},
 
         // deprecated alias flags (see also aliased_jvm_flags):
         {"DefaultMaxRAMFraction", "4"},