Skip to content


8317987: C2 recompilations cause high memory footprint
Browse files Browse the repository at this point in the history
Backport-of: c88b387881a6e9206f9804b4ca966334c65c008a
  • Loading branch information
tstuefe committed Oct 20, 2023
1 parent 418a199 commit 0af96a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hotspot/share/opto/c2compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ void C2Compiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci, boo
bool do_locks_coarsening = EliminateLocks;

while (!env->failing()) {
ResourceMark rm;
// Attempt to compile while subsuming loads into machine instructions.
Options options(subsume_loads, do_escape_analysis, do_iterative_escape_analysis, eliminate_boxing, do_locks_coarsening, install_code);
Compile C(env, target, entry_bci, options, directive);
Expand Down

1 comment on commit 0af96a8

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.