Skip to content

Commit

Permalink
8290495: Micro-optimize Method::can_be_statically_bound assertions
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes, stuefe
  • Loading branch information
shipilev committed Jul 20, 2022
1 parent 9714791 commit 2ea3f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/oops/method.cpp
Expand Up @@ -805,9 +805,9 @@ bool Method::is_default_method() const {
bool Method::can_be_statically_bound(AccessFlags class_access_flags) const {
if (is_final_method(class_access_flags)) return true;
#ifdef ASSERT
ResourceMark rm;
bool is_nonv = (vtable_index() == nonvirtual_vtable_index);
if (class_access_flags.is_interface()) {
ResourceMark rm;
assert(is_nonv == is_static() || is_nonv == is_private(),
"nonvirtual unexpected for non-static, non-private: %s",
name_and_sig_as_C_string());
Expand Down

0 comments on commit 2ea3f54

Please sign in to comment.