Mercurial > hg > graal-compiler
diff src/share/vm/runtime/globals.cpp @ 20248:009de2b033fc
8029070: memory leak in jmm_SetVMGlobal
Reviewed-by: kvn, dholmes
author | iignatyev |
---|---|
date | Mon, 23 Dec 2013 20:56:18 +0400 |
parents | 78bbf4d43a14 |
children | 0c48231c5c84 |
line wrap: on
line diff
--- a/src/share/vm/runtime/globals.cpp Thu Jan 16 13:25:25 2014 -0800 +++ b/src/share/vm/runtime/globals.cpp Mon Dec 23 20:56:18 2013 +0400 @@ -759,8 +759,6 @@ return true; } -// Contract: Flag will make private copy of the incoming value. -// Outgoing value is always malloc-ed, and caller MUST call free. bool CommandLineFlags::ccstrAtPut(char* name, size_t len, ccstr* value, Flag::Flags origin) { Flag* result = Flag::find_flag(name, len); if (result == NULL) return false; @@ -784,7 +782,6 @@ return true; } -// Contract: Flag will make private copy of the incoming value. void CommandLineFlagsEx::ccstrAtPut(CommandLineFlagWithType flag, ccstr value, Flag::Flags origin) { Flag* faddr = address_of_flag(flag); guarantee(faddr != NULL && faddr->is_ccstr(), "wrong flag type");