Skip to content

Commit ab5b6a9

Browse files
committed
8214275: CondyRepeatFailedResolution asserts "Dynamic constant has no fixed basic type"
GenerateOopMap::do_ldc must check for a DynamicInError as well as a Dynamic constant pool tag. Backport-of: 99bcec0
1 parent cb1a537 commit ab5b6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/oops/generateOopMap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ void GenerateOopMap::do_ldc(int bci) {
18791879
constantTag tag = cp->tag_at(ldc.pool_index()); // idx is index in resolved_references
18801880
BasicType bt = ldc.result_type();
18811881
#ifdef ASSERT
1882-
BasicType tag_bt = tag.is_dynamic_constant() ? bt : tag.basic_type();
1882+
BasicType tag_bt = (tag.is_dynamic_constant() || tag.is_dynamic_constant_in_error()) ? bt : tag.basic_type();
18831883
assert(bt == tag_bt, "same result");
18841884
#endif
18851885
CellTypeState cts;

0 commit comments

Comments
 (0)