diff src/share/vm/runtime/globals.hpp @ 20248:009de2b033fc

8029070: memory leak in jmm_SetVMGlobal Reviewed-by: kvn, dholmes
author iignatyev
date Mon, 23 Dec 2013 20:56:18 +0400
parents 0982ec23da03
children 0c48231c5c84
line wrap: on
line diff
--- a/src/share/vm/runtime/globals.hpp	Thu Jan 16 13:25:25 2014 -0800
+++ b/src/share/vm/runtime/globals.hpp	Mon Dec 23 20:56:18 2013 +0400
@@ -390,6 +390,8 @@
 
   static bool ccstrAt(char* name, size_t len, ccstr* value);
   static bool ccstrAt(char* name, ccstr* value)    { return ccstrAt(name, strlen(name), value); }
+  // Contract:  Flag will make private copy of the incoming value.
+  // Outgoing value is always malloc-ed, and caller MUST call free.
   static bool ccstrAtPut(char* name, size_t len, ccstr* value, Flag::Flags origin);
   static bool ccstrAtPut(char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); }