Skip to content

Commit 43cb875

Browse files
martinuygnu-andrew
authored andcommitted
8317507: C2 compilation fails with "Exceeded _node_regs array"
Reviewed-by: roland, andrew Backport-of: a581897
1 parent 97be547 commit 43cb875

File tree

2 files changed

+601
-0
lines changed

2 files changed

+601
-0
lines changed

hotspot/src/share/vm/adlc/output_c.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3023,6 +3023,8 @@ static void define_fill_new_machnode(bool used, FILE *fp_cpp) {
30233023
fprintf(fp_cpp, " if( i != cisc_operand() ) \n");
30243024
fprintf(fp_cpp, " to[i] = _opnds[i]->clone(C);\n");
30253025
fprintf(fp_cpp, " }\n");
3026+
fprintf(fp_cpp, " // Do not increment node index counter, since node reuses my index\n");
3027+
fprintf(fp_cpp, " C->set_unique(C->unique() - 1);\n");
30263028
fprintf(fp_cpp, "}\n");
30273029
}
30283030
fprintf(fp_cpp, "\n");

0 commit comments

Comments
 (0)