--- a/src/hotspot/share/opto/compile.cpp Fri Jul 13 11:21:55 2018 +0800
+++ b/src/hotspot/share/opto/compile.cpp Thu Jul 12 16:31:28 2018 +0200
@@ -4049,9 +4049,9 @@
int Compile::ConstantTable::find_offset(Constant& con) const {
int idx = _constants.find(con);
- assert(idx != -1, "constant must be in constant table");
+ guarantee(idx != -1, "constant must be in constant table");
int offset = _constants.at(idx).offset();
- assert(offset != -1, "constant table not emitted yet?");
+ guarantee(offset != -1, "constant table not emitted yet?");
return offset;
}