8255721: Remove no-op clean_weak_method_links methods
Reviewed-by: kvn, thartmann
This commit is contained in:
parent
3302d3adb5
commit
4b775e64bd
src/hotspot/share/oops
@ -1786,27 +1786,7 @@ void MethodData::clean_method_data(bool always_clean) {
|
||||
// methods out of MethodData for all methods.
|
||||
void MethodData::clean_weak_method_links() {
|
||||
ResourceMark rm;
|
||||
for (ProfileData* data = first_data();
|
||||
is_valid(data);
|
||||
data = next_data(data)) {
|
||||
data->clean_weak_method_links();
|
||||
}
|
||||
|
||||
CleanExtraDataMethodClosure cl;
|
||||
clean_extra_data(&cl);
|
||||
verify_extra_data_clean(&cl);
|
||||
}
|
||||
|
||||
#ifdef ASSERT
|
||||
void MethodData::verify_clean_weak_method_links() {
|
||||
ResourceMark rm;
|
||||
for (ProfileData* data = first_data();
|
||||
is_valid(data);
|
||||
data = next_data(data)) {
|
||||
data->verify_clean_weak_method_links();
|
||||
}
|
||||
|
||||
CleanExtraDataMethodClosure cl;
|
||||
verify_extra_data_clean(&cl);
|
||||
}
|
||||
#endif // ASSERT
|
||||
|
@ -238,10 +238,6 @@ public:
|
||||
|
||||
// GC support
|
||||
void clean_weak_klass_links(bool always_clean);
|
||||
|
||||
// Redefinition support
|
||||
void clean_weak_method_links();
|
||||
DEBUG_ONLY(void verify_clean_weak_method_links();)
|
||||
};
|
||||
|
||||
|
||||
@ -455,10 +451,6 @@ public:
|
||||
// GC support
|
||||
virtual void clean_weak_klass_links(bool always_clean) {}
|
||||
|
||||
// Redefinition support
|
||||
virtual void clean_weak_method_links() {}
|
||||
DEBUG_ONLY(virtual void verify_clean_weak_method_links() {})
|
||||
|
||||
// CI translation: ProfileData can represent both MethodDataOop data
|
||||
// as well as CIMethodData data. This function is provided for translating
|
||||
// an oop in a ProfileData to the ci equivalent. Generally speaking,
|
||||
@ -2415,7 +2407,6 @@ public:
|
||||
|
||||
void clean_method_data(bool always_clean);
|
||||
void clean_weak_method_links();
|
||||
DEBUG_ONLY(void verify_clean_weak_method_links();)
|
||||
Mutex* extra_data_lock() { return &_extra_data_lock; }
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user