mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8223171: Redundant nmethod dependencies for effectively final methods
Reviewed-by: dlong
This commit is contained in:
parent
c7faef0785
commit
75d4f24c97
8 changed files with 38 additions and 7 deletions
|
@ -624,6 +624,10 @@ bool Method::can_be_statically_bound() const {
|
|||
return can_be_statically_bound(method_holder()->access_flags());
|
||||
}
|
||||
|
||||
bool Method::can_be_statically_bound(InstanceKlass* context) const {
|
||||
return (method_holder() == context) && can_be_statically_bound();
|
||||
}
|
||||
|
||||
bool Method::is_accessor() const {
|
||||
return is_getter() || is_setter();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue