8317502: Add asserts to check for non-null in ciInstance::java_lang_Class_klass

Reviewed-by: kvn, thartmann
This commit is contained in:
Damon Fenacci 2023-10-06 08:57:08 +00:00
parent 991ce84e09
commit f0d66d1fd3

View File

@ -136,5 +136,6 @@ void ciInstance::print_impl(outputStream* st) {
ciKlass* ciInstance::java_lang_Class_klass() {
VM_ENTRY_MARK;
assert(java_lang_Class::as_Klass(get_oop()) != nullptr, "klass is null");
return CURRENT_ENV->get_metadata(java_lang_Class::as_Klass(get_oop()))->as_klass();
}