src/hotspot/share/oops/generateOopMap.cpp
changeset 52881 dfdc025ad9ea
parent 49177 eebf559c9e0d
child 53838 c8c9bd65c198
--- a/src/hotspot/share/oops/generateOopMap.cpp	Thu Dec 06 10:22:23 2018 -0500
+++ b/src/hotspot/share/oops/generateOopMap.cpp	Thu Dec 06 10:46:10 2018 -0500
@@ -1879,7 +1879,7 @@
   constantTag tag = cp->tag_at(ldc.pool_index()); // idx is index in resolved_references
   BasicType       bt  = ldc.result_type();
 #ifdef ASSERT
-  BasicType   tag_bt = tag.is_dynamic_constant() ? bt : tag.basic_type();
+  BasicType   tag_bt = (tag.is_dynamic_constant() || tag.is_dynamic_constant_in_error()) ? bt : tag.basic_type();
   assert(bt == tag_bt, "same result");
 #endif
   CellTypeState   cts;