Mercurial > hg > graal-compiler
diff src/share/vm/runtime/globals.hpp @ 14183:6c583aa36bc9
8029070: memory leak in jmm_SetVMGlobal
Reviewed-by: kvn, dholmes
author | iignatyev |
---|---|
date | Mon, 23 Dec 2013 20:56:18 +0400 |
parents | 438fe38c63c8 |
children | db1ff6781ab4 |
line wrap: on
line diff
--- a/src/share/vm/runtime/globals.hpp Wed Dec 18 23:09:57 2013 +0400 +++ b/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); }