8317502: Add asserts to check for non-null in ciInstance::java_lang_Class_klass
Reviewed-by: kvn, thartmann
This commit is contained in:
parent
991ce84e09
commit
f0d66d1fd3
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user