8154942: Remove ProcessTools.getVmInputArguments() from the hotspot test library, as it is not used by any of the hotspot tests
authorgtriantafill
Thu, 05 May 2016 12:25:29 -0400
changeset 38199 476ae2a48d3d
parent 38197 d51ca2fac8d6
child 38200 0f97b0351546
8154942: Remove ProcessTools.getVmInputArguments() from the hotspot test library, as it is not used by any of the hotspot tests Reviewed-by: ctornqvi, hseigel
hotspot/test/testlibrary/jdk/test/lib/ProcessTools.java
--- a/hotspot/test/testlibrary/jdk/test/lib/ProcessTools.java	Tue May 03 07:23:23 2016 -0700
+++ b/hotspot/test/testlibrary/jdk/test/lib/ProcessTools.java	Thu May 05 12:25:29 2016 -0400
@@ -95,22 +95,6 @@
   }
 
   /**
-   * Get the string containing input arguments passed to the VM
-   *
-   * @return arguments
-   */
-  public static String getVmInputArguments() {
-    RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean();
-
-    List<String> args = runtime.getInputArguments();
-    StringBuilder result = new StringBuilder();
-    for (String arg : args)
-        result.append(arg).append(' ');
-
-    return result.toString();
-  }
-
-  /**
    * Gets the array of strings containing input arguments passed to the VM
    *
    * @return arguments