Mercurial > hg > truffle
diff src/share/vm/runtime/arguments.cpp @ 2129:8f8dfba37802
6994753: Implement optional hook to a Java method at VM startup.
Reviewed-by: mchung, acorn
author | kevinw |
---|---|
date | Wed, 12 Jan 2011 15:44:16 +0000 |
parents | 36c186bcc085 |
children | bb2c2878f134 234761c55641 |
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp Tue Jan 11 17:50:26 2011 -0500 +++ b/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();