mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8255721: Remove no-op clean_weak_method_links methods
Reviewed-by: kvn, thartmann
This commit is contained in:
parent
3302d3adb5
commit
4b775e64bd
2 changed files with 0 additions and 29 deletions
|
@ -1786,27 +1786,7 @@ void MethodData::clean_method_data(bool always_clean) {
|
||||||
// methods out of MethodData for all methods.
|
// methods out of MethodData for all methods.
|
||||||
void MethodData::clean_weak_method_links() {
|
void MethodData::clean_weak_method_links() {
|
||||||
ResourceMark rm;
|
ResourceMark rm;
|
||||||
for (ProfileData* data = first_data();
|
|
||||||
is_valid(data);
|
|
||||||
data = next_data(data)) {
|
|
||||||
data->clean_weak_method_links();
|
|
||||||
}
|
|
||||||
|
|
||||||
CleanExtraDataMethodClosure cl;
|
CleanExtraDataMethodClosure cl;
|
||||||
clean_extra_data(&cl);
|
clean_extra_data(&cl);
|
||||||
verify_extra_data_clean(&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
|
// GC support
|
||||||
void clean_weak_klass_links(bool always_clean);
|
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
|
// GC support
|
||||||
virtual void clean_weak_klass_links(bool always_clean) {}
|
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
|
// CI translation: ProfileData can represent both MethodDataOop data
|
||||||
// as well as CIMethodData data. This function is provided for translating
|
// as well as CIMethodData data. This function is provided for translating
|
||||||
// an oop in a ProfileData to the ci equivalent. Generally speaking,
|
// 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_method_data(bool always_clean);
|
||||||
void clean_weak_method_links();
|
void clean_weak_method_links();
|
||||||
DEBUG_ONLY(void verify_clean_weak_method_links();)
|
|
||||||
Mutex* extra_data_lock() { return &_extra_data_lock; }
|
Mutex* extra_data_lock() { return &_extra_data_lock; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue