Mercurial > hg > graal-compiler
changeset 21582:b72a5d25ad43
Fix wrong free in ~OptionsTable
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Fri, 29 May 2015 10:35:51 +0200 |
parents | 03974616babf |
children | 16eff885df66 |
files | src/share/vm/jvmci/jvmciOptions.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciOptions.cpp Fri May 29 10:13:18 2015 +0200 +++ b/src/share/vm/jvmci/jvmciOptions.cpp Fri May 29 10:35:51 2015 +0200 @@ -111,6 +111,9 @@ class FreeNamesClosure : public ValueClosure<OptionDesc> { void do_value(OptionDesc* desc) { + if (desc->declaringClass == NULL) { + return; //skip pseudo-options whose name is not allocated with malloc + } FREE_C_HEAP_ARRAY(char, desc->name, mtCompiler); } };