src/hotspot/share/opto/compile.cpp
changeset 51078 fc6cfe40e32a
parent 50525 767cdb97f103
child 51333 f6641fcf7b7e
--- 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;
 }