Mercurial > hg > truffle
changeset 21876:d358434dd6b7
Use ressource array while parsing services rather than leak a heap array
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Tue, 09 Jun 2015 13:19:52 +0200 |
parents | 431b127fc0d1 |
children | 23f0f181bc05 |
files | src/share/vm/jvmci/jvmciRuntime.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciRuntime.cpp Tue Jun 09 13:06:37 2015 +0200 +++ b/src/share/vm/jvmci/jvmciRuntime.cpp Tue Jun 09 13:19:52 2015 +0200 @@ -1181,7 +1181,7 @@ ServiceParseClosure() : _implNames() {} void do_line(char* line) { size_t lineLen = strlen(line); - char* implName = NEW_C_HEAP_ARRAY(char, lineLen + 1, mtCompiler); // TODO (gd) i'm leaking + char* implName = NEW_RESOURCE_ARRAY(char, lineLen + 1); // Turn all '.'s into '/'s for (size_t index = 0; index < lineLen; ++index) { if (line[index] == '.') {