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 committed Nov 10, 2023
1 parent 525d220 commit c952079
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 @@ -3124,6 +3124,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

1 comment on commit c952079

@openjdk-notifier
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.