Skip to content

Commit fb9a227

Browse files
author
Doug Simon
committed
8313909: [JVMCI] assert(cp->tag_at(index).is_unresolved_klass()) in lookupKlassInPool
Reviewed-by: yzheng, never
1 parent e6c5aa7 commit fb9a227

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hotspot/share/jvmci/jvmciCompilerToVM.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,9 @@ C2V_VMENTRY_NULL(jobject, lookupKlassInPool, (JNIEnv* env, jobject, ARGUMENT_PAI
897897
} else if (tag.is_symbol()) {
898898
symbol = cp->symbol_at(index);
899899
} else {
900-
assert(cp->tag_at(index).is_unresolved_klass(), "wrong tag");
900+
if (!tag.is_unresolved_klass()) {
901+
JVMCI_THROW_MSG_NULL(InternalError, err_msg("Expected %d at index %d, got %d", JVM_CONSTANT_UnresolvedClassInError, index, tag.value()));
902+
}
901903
symbol = cp->klass_name_at(index);
902904
}
903905
}

0 commit comments

Comments
 (0)