8297333: Parallel: Remove unused methods in PCIterateMarkAndPushClosure

Reviewed-by: tschatzl, sjohanss
This commit is contained in:
Albert Mingkun Yang 2022-11-22 14:39:10 +00:00
parent 42c2037429
commit 932bf3539c
2 changed files with 0 additions and 17 deletions

View File

@ -182,10 +182,6 @@ class ParCompactionManager : public CHeapObj<mtGC> {
// Check mark and maybe push on marking stack.
template <typename T> inline void mark_and_push(T* p);
inline void follow_klass(Klass* klass);
void follow_class_loader(ClassLoaderData* klass);
// Access function for compaction managers
static ParCompactionManager* gc_thread_compaction_manager(uint index);

View File

@ -61,9 +61,6 @@ public:
template <typename T> void do_oop_nv(T* p) { _compaction_manager->mark_and_push(p); }
virtual void do_oop(oop* p) { do_oop_nv(p); }
virtual void do_oop(narrowOop* p) { do_oop_nv(p); }
void do_klass_nv(Klass* k) { _compaction_manager->follow_klass(k); }
void do_cld_nv(ClassLoaderData* cld) { _compaction_manager->follow_class_loader(cld); }
};
inline bool ParCompactionManager::steal(int queue_num, oop& t) {
@ -119,11 +116,6 @@ inline void ParCompactionManager::mark_and_push(T* p) {
}
}
inline void ParCompactionManager::follow_klass(Klass* klass) {
oop holder = klass->class_loader_data()->holder_no_keepalive();
mark_and_push(&holder);
}
inline void ParCompactionManager::FollowStackClosure::do_void() {
_compaction_manager->follow_marking_stacks();
if (_terminator != nullptr) {
@ -168,11 +160,6 @@ inline void ParCompactionManager::update_contents(oop obj) {
}
}
inline void ParCompactionManager::follow_class_loader(ClassLoaderData* cld) {
PCMarkAndPushClosure mark_and_push_closure(this);
cld->oops_do(&mark_and_push_closure, true);
}
inline void ParCompactionManager::follow_contents(oop obj) {
assert(PSParallelCompact::mark_bitmap()->is_marked(obj), "should be marked");
if (obj->is_objArray()) {