Skip to content

Commit 3269cec

Browse files
committed
8286870: Memory leak with RepeatCompilation
Backport-of: 69ff86a32088d9664e5e0dae12edddc0643e3fd3
1 parent 47e478d commit 3269cec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hotspot/share/compiler/compileBroker.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2319,8 +2319,9 @@ void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
23192319
/* Repeat compilation without installing code for profiling purposes */
23202320
int repeat_compilation_count = directive->RepeatCompilationOption;
23212321
while (repeat_compilation_count > 0) {
2322+
ResourceMark rm(thread);
23222323
task->print_ul("NO CODE INSTALLED");
2323-
comp->compile_method(&ci_env, target, osr_bci, false , directive);
2324+
comp->compile_method(&ci_env, target, osr_bci, false, directive);
23242325
repeat_compilation_count--;
23252326
}
23262327
}

0 commit comments

Comments
 (0)