hotspot/src/share/vm/runtime/globals.hpp
changeset 22194 e4bef4b8cdb4
parent 21733 20093ed7e42b
child 22248 34f19df648a2
--- a/hotspot/src/share/vm/runtime/globals.hpp	Wed Dec 18 23:09:57 2013 +0400
+++ b/hotspot/src/share/vm/runtime/globals.hpp	Mon Dec 23 20:56:18 2013 +0400
@@ -376,6 +376,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); }