Skip to content

Commit

Permalink
8317507: C2 compilation fails with "Exceeded _node_regs array"
Browse files Browse the repository at this point in the history
Backport-of: a5818972c16bd883d768ff2fb23a8aa9e0142c65
  • Loading branch information
shipilev authored and martinuy committed Mar 22, 2024
1 parent 50d0503 commit 9237cae
Show file tree
Hide file tree
Showing 2 changed files with 602 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hotspot/share/adlc/output_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3040,6 +3040,9 @@ static void define_fill_new_machnode(bool used, FILE *fp_cpp) {
fprintf(fp_cpp, " if( i != cisc_operand() ) \n");
fprintf(fp_cpp, " to[i] = _opnds[i]->clone();\n");
fprintf(fp_cpp, " }\n");
fprintf(fp_cpp, " // Do not increment node index counter, since node reuses my index\n");
fprintf(fp_cpp, " Compile* C = Compile::current();\n");
fprintf(fp_cpp, " C->set_unique(C->unique() - 1);\n");
fprintf(fp_cpp, "}\n");
}
fprintf(fp_cpp, "\n");
Expand Down
Loading

0 comments on commit 9237cae

Please sign in to comment.