hotspot/src/share/vm/runtime/arguments.cpp
changeset 7900 4c7fc6332f7e
parent 7719 ef138e2849eb
child 8073 a14dc27842dc
child 8063 3b8d1557d967
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Tue Jan 11 17:50:26 2011 -0500
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Wed Jan 12 15:44:16 2011 +0000
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2011, 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
@@ -918,9 +918,7 @@
   } else if (strcmp(key, "sun.java.command") == 0) {
     _java_command = value;
 
-    // don't add this property to the properties exposed to the java application
-    FreeHeap(key);
-    return true;
+    // Record value in Arguments, but let it get passed to Java.
   } else if (strcmp(key, "sun.java.launcher.pid") == 0) {
     // launcher.pid property is private and is processed
     // in process_sun_java_launcher_properties();