mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7096010: c2: running with +PrintOptoAssembly crashes the VM when $constanttablebase is used
ADLC generates code to prepare the register string to be printed in a char array but then calls print without the char array as an argument. Reviewed-by: never
This commit is contained in:
parent
0219cf5423
commit
8ae50d45a4
1 changed files with 1 additions and 1 deletions
|
@ -1225,7 +1225,7 @@ void InstructForm::rep_var_format(FILE *fp, const char *rep_var) {
|
|||
// Handle special constant table variables.
|
||||
if (strcmp(rep_var, "constanttablebase") == 0) {
|
||||
fprintf(fp, "char reg[128]; ra->dump_register(in(mach_constant_base_node_input()), reg);\n");
|
||||
fprintf(fp, "st->print(\"%%s\");\n");
|
||||
fprintf(fp, " st->print(\"%%s\", reg);\n");
|
||||
return;
|
||||
}
|
||||
if (strcmp(rep_var, "constantoffset") == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue