diff --git a/src/hotspot/share/adlc/output_c.cpp b/src/hotspot/share/adlc/output_c.cpp index d243589db44..aca63592dc2 100644 --- a/src/hotspot/share/adlc/output_c.cpp +++ b/src/hotspot/share/adlc/output_c.cpp @@ -726,7 +726,6 @@ void ArchDesc::build_pipe_classes(FILE *fp_cpp) { fprintf(fp_cpp, " }\n"); fprintf(fp_cpp, "#endif\n\n"); #endif - fprintf(fp_cpp, " assert(this, \"null pipeline info\");\n"); fprintf(fp_cpp, " assert(pred, \"null predecessor pipline info\");\n\n"); fprintf(fp_cpp, " if (pred->hasFixedLatency())\n return (pred->fixedLatency());\n\n"); fprintf(fp_cpp, " // If this is not an operand, then assume a dependence with 0 latency\n"); diff --git a/src/hotspot/share/asm/codeBuffer.cpp b/src/hotspot/share/asm/codeBuffer.cpp index ab8aed1cb66..7a0a31abf59 100644 --- a/src/hotspot/share/asm/codeBuffer.cpp +++ b/src/hotspot/share/asm/codeBuffer.cpp @@ -1061,11 +1061,6 @@ void CodeSection::print(const char* name) { } void CodeBuffer::print() { - if (this == nullptr) { - tty->print_cr("null CodeBuffer pointer"); - return; - } - tty->print_cr("CodeBuffer:"); for (int n = 0; n < (int)SECT_LIMIT; n++) { // print each section