--- a/src/hotspot/cpu/x86/c1_LIRAssembler_x86.cpp Thu Feb 01 14:19:04 2018 -0800
+++ b/src/hotspot/cpu/x86/c1_LIRAssembler_x86.cpp Wed Jan 31 16:09:29 2018 -0800
@@ -3504,7 +3504,7 @@
ciMethodData* md = method->method_data_or_null();
assert(md != NULL, "Sanity");
ciProfileData* data = md->bci_to_data(bci);
- assert(data->is_CounterData(), "need CounterData for calls");
+ assert(data != NULL && data->is_CounterData(), "need CounterData for calls");
assert(op->mdo()->is_single_cpu(), "mdo must be allocated");
Register mdo = op->mdo()->as_register();
__ mov_metadata(mdo, md->constant_encoding());