Skip to content
Permalink
Browse files

8235586: Shenandoah: Traversal GC still uses old CLD::oops_do API

Reviewed-by: rkennke
  • Loading branch information
zhengyu123 committed Dec 9, 2019
1 parent baebce3 commit 93286c94dce309858419841ff0a35bdf984bec14
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/hotspot/share/gc/shenandoah/shenandoahTraversalGC.cpp
@@ -140,7 +140,7 @@ class ShenandoahMarkCLDClosure : public CLDClosure {
public:
ShenandoahMarkCLDClosure(OopClosure* cl) : _cl(cl) {}
void do_cld(ClassLoaderData* cld) {
cld->oops_do(_cl, true, true);
cld->oops_do(_cl, ClassLoaderData::_claim_strong, true);
}
};

@@ -152,7 +152,7 @@ class ShenandoahRemarkCLDClosure : public CLDClosure {
ShenandoahRemarkCLDClosure(OopClosure* cl) : _cl(cl) {}
void do_cld(ClassLoaderData* cld) {
if (cld->has_modified_oops()) {
cld->oops_do(_cl, true, true);
cld->oops_do(_cl, ClassLoaderData::_claim_strong, true);
}
}
};

0 comments on commit 93286c9

Please sign in to comment.
You can’t perform that action at this time.