mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8290495: Micro-optimize Method::can_be_statically_bound assertions
Reviewed-by: dholmes, stuefe
This commit is contained in:
parent
971479153d
commit
2ea3f546c2
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue