Skip to content

Commit

Permalink
8317502: Add asserts to check for non-null in ciInstance::java_lang_C…
Browse files Browse the repository at this point in the history
…lass_klass

Reviewed-by: kvn, thartmann
  • Loading branch information
dafedafe committed Oct 6, 2023
1 parent 991ce84 commit f0d66d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hotspot/share/ci/ciInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

1 comment on commit f0d66d1

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.