--- a/src/hotspot/share/c1/c1_LIRGenerator.cpp Mon Nov 04 13:02:40 2019 -0800
+++ b/src/hotspot/share/c1/c1_LIRGenerator.cpp Thu Oct 31 07:53:16 2019 +0100
@@ -1301,7 +1301,7 @@
}
__ move(new LIR_Address(rcvr.result(), java_lang_Class::klass_offset_in_bytes(), T_ADDRESS), temp, info);
- __ cmp(lir_cond_notEqual, temp, LIR_OprFact::intConst(0));
+ __ cmp(lir_cond_notEqual, temp, LIR_OprFact::metadataConst(0));
__ cmove(lir_cond_notEqual, LIR_OprFact::intConst(0), LIR_OprFact::intConst(1), result, T_BOOLEAN);
}