changeset 18119:6997fce99fa3

graal/hotspot: fix memleak
author Bernhard Urban <bernhard.urban@jku.at>
date Fri, 17 Oct 2014 13:33:31 +0200
parents e98942f26fa4
children 86ec7f6f71b3
files src/share/vm/graal/graalCompiler.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp	Fri Oct 17 11:59:55 2014 +0200
+++ b/src/share/vm/graal/graalCompiler.cpp	Fri Oct 17 13:33:31 2014 +0200
@@ -170,6 +170,7 @@
   // We turn off CompileTheWorld so that Graal can
   // be compiled by C1/C2 when Graal does a CTW.
   CompileTheWorld = false;
+  HandleMark hm;
 
   JavaThread* THREAD = JavaThread::current();
   TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/hotspot/HotSpotGraalRuntime", CHECK_ABORT);