8213767: Remove the -Xconcurrentio flag and associated code
authordholmes
Wed, 14 Nov 2018 04:56:43 -0500
changeset 52518 6f18c23b0185
parent 52517 59065e5d56ec
child 52553 9ca9aa224c39
8213767: Remove the -Xconcurrentio flag and associated code Reviewed-by: lfoltan, rehn
src/hotspot/share/runtime/arguments.cpp
src/hotspot/share/runtime/safepoint.hpp
test/hotspot/jtreg/runtime/CommandLine/TestNullTerminatedFlags.java
--- a/src/hotspot/share/runtime/arguments.cpp	Wed Nov 14 09:19:31 2018 +0100
+++ b/src/hotspot/share/runtime/arguments.cpp	Wed Nov 14 04:56:43 2018 -0500
@@ -2642,23 +2642,7 @@
       // Obsolete in JDK 10
       JDK_Version::jdk(10).to_string(version, sizeof(version));
       warning("Ignoring option %s; support was removed in %s", option->optionString, version);
-    // -Xconcurrentio
-    } else if (match_option(option, "-Xconcurrentio")) {
-      if (FLAG_SET_CMDLINE(bool, UseLWPSynchronization, true) != JVMFlag::SUCCESS) {
-        return JNI_EINVAL;
-      }
-      if (FLAG_SET_CMDLINE(bool, BackgroundCompilation, false) != JVMFlag::SUCCESS) {
-        return JNI_EINVAL;
-      }
-      SafepointSynchronize::set_defer_thr_suspend_loop_count();
-      if (FLAG_SET_CMDLINE(bool, UseTLAB, false) != JVMFlag::SUCCESS) {
-        return JNI_EINVAL;
-      }
-      if (FLAG_SET_CMDLINE(size_t, NewSizeThreadIncrease, 16 * K) != JVMFlag::SUCCESS) {  // 20Kb per thread added to new generation
-        return JNI_EINVAL;
-      }
-
-      // -Xinternalversion
+    // -Xinternalversion
     } else if (match_option(option, "-Xinternalversion")) {
       jio_fprintf(defaultStream::output_stream(), "%s\n",
                   VM_Version::internal_vm_info_string());
--- a/src/hotspot/share/runtime/safepoint.hpp	Wed Nov 14 09:19:31 2018 +0100
+++ b/src/hotspot/share/runtime/safepoint.hpp	Wed Nov 14 04:56:43 2018 -0500
@@ -178,10 +178,6 @@
 
   static address safepoint_counter_addr()                  { return (address)&_safepoint_counter; }
 
-  // This method is only used for -Xconcurrentio support.
-  static void set_defer_thr_suspend_loop_count() {
-    _defer_thr_suspend_loop_count = 1;
-  }
 };
 
 // Some helper assert macros for safepoint checks.
--- a/test/hotspot/jtreg/runtime/CommandLine/TestNullTerminatedFlags.java	Wed Nov 14 09:19:31 2018 +0100
+++ b/test/hotspot/jtreg/runtime/CommandLine/TestNullTerminatedFlags.java	Wed Nov 14 04:56:43 2018 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2018, 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
@@ -42,7 +42,6 @@
             "-green",
             "-native",
             "-Xrs",
-            "-Xconcurrentio",
             "-Xinternalversion",
             "-Xprintflags",
             "-Xint",