# HG changeset patch # User Gilles Duboscq # Date 1433848792 -7200 # Node ID d358434dd6b76a825341dcf9598635e614e0592d # Parent 431b127fc0d1edc5870be2e0466e7db7a72f7e44 Use ressource array while parsing services rather than leak a heap array diff -r 431b127fc0d1 -r d358434dd6b7 src/share/vm/jvmci/jvmciRuntime.cpp --- 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] == '.') {