Skip to content
Permalink
Browse files

8241067: Shenandoah: improve ShenandoahNMethod::has_cset_oops arguments

Reviewed-by: shade
  • Loading branch information
adityamandaleeka committed Mar 24, 2020
1 parent 23d6a78 commit 32d496507bc3b016e17f6218ebf90d7359990e45
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/hotspot/share/gc/shenandoah/shenandoahNMethod.cpp
@@ -57,8 +57,8 @@ class ShenandoahHasCSetOopClosure : public OopClosure {
bool _has_cset_oops;

public:
ShenandoahHasCSetOopClosure() :
_heap(ShenandoahHeap::heap()),
ShenandoahHasCSetOopClosure(ShenandoahHeap *heap) :
_heap(heap),
_has_cset_oops(false) {
}

@@ -79,7 +79,7 @@ class ShenandoahHasCSetOopClosure : public OopClosure {
};

bool ShenandoahNMethod::has_cset_oops(ShenandoahHeap *heap) {
ShenandoahHasCSetOopClosure cl;
ShenandoahHasCSetOopClosure cl(heap);
oops_do(&cl);
return cl.has_cset_oops();
}

0 comments on commit 32d4965

Please sign in to comment.