Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompiler.cpp @ 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 | 6a2f814224b1 |
comparison
equal
deleted
inserted
replaced
18118:e98942f26fa4 | 18119:6997fce99fa3 |
---|---|
168 #ifndef PRODUCT | 168 #ifndef PRODUCT |
169 void GraalCompiler::compile_the_world() { | 169 void GraalCompiler::compile_the_world() { |
170 // We turn off CompileTheWorld so that Graal can | 170 // We turn off CompileTheWorld so that Graal can |
171 // be compiled by C1/C2 when Graal does a CTW. | 171 // be compiled by C1/C2 when Graal does a CTW. |
172 CompileTheWorld = false; | 172 CompileTheWorld = false; |
173 HandleMark hm; | |
173 | 174 |
174 JavaThread* THREAD = JavaThread::current(); | 175 JavaThread* THREAD = JavaThread::current(); |
175 TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/hotspot/HotSpotGraalRuntime", CHECK_ABORT); | 176 TempNewSymbol name = SymbolTable::new_symbol("com/oracle/graal/hotspot/HotSpotGraalRuntime", CHECK_ABORT); |
176 KlassHandle klass = GraalRuntime::load_required_class(name); | 177 KlassHandle klass = GraalRuntime::load_required_class(name); |
177 TempNewSymbol compileTheWorld = SymbolTable::new_symbol("compileTheWorld", CHECK_ABORT); | 178 TempNewSymbol compileTheWorld = SymbolTable::new_symbol("compileTheWorld", CHECK_ABORT); |