Skip to content

Commit c88b387

Browse files
committed
8317987: C2 recompilations cause high memory footprint
Reviewed-by: adinn, kvn
1 parent 993951b commit c88b387

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hotspot/share/opto/c2compiler.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ void C2Compiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci, boo
118118
bool do_superword = UseSuperWord;
119119

120120
while (!env->failing()) {
121+
ResourceMark rm;
121122
// Attempt to compile while subsuming loads into machine instructions.
122123
Options options(subsume_loads,
123124
do_escape_analysis,

0 commit comments

Comments
 (0)