Mercurial > hg > graal-compiler
diff src/share/vm/jvmci/jvmciOptions.cpp @ 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 | 47bebae7454f |
children | ccf89c722ac8 |
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); } };