8274546: Shenandoah: Remove unused ShenandoahUpdateRootsTask copy
Reviewed-by: zgu, tschatzl
This commit is contained in:
parent
d5ccfa2ae9
commit
8319836152
@ -42,33 +42,6 @@
|
|||||||
#include "memory/iterator.inline.hpp"
|
#include "memory/iterator.inline.hpp"
|
||||||
#include "memory/resourceArea.hpp"
|
#include "memory/resourceArea.hpp"
|
||||||
|
|
||||||
class ShenandoahUpdateRootsTask : public AbstractGangTask {
|
|
||||||
private:
|
|
||||||
ShenandoahRootUpdater* _root_updater;
|
|
||||||
bool _check_alive;
|
|
||||||
public:
|
|
||||||
ShenandoahUpdateRootsTask(ShenandoahRootUpdater* root_updater, bool check_alive) :
|
|
||||||
AbstractGangTask("Shenandoah Update Roots"),
|
|
||||||
_root_updater(root_updater),
|
|
||||||
_check_alive(check_alive){
|
|
||||||
}
|
|
||||||
|
|
||||||
void work(uint worker_id) {
|
|
||||||
assert(ShenandoahSafepoint::is_at_shenandoah_safepoint(), "Must be at a safepoint");
|
|
||||||
ShenandoahParallelWorkerSession worker_session(worker_id);
|
|
||||||
|
|
||||||
ShenandoahHeap* heap = ShenandoahHeap::heap();
|
|
||||||
ShenandoahUpdateRefsClosure cl;
|
|
||||||
if (_check_alive) {
|
|
||||||
ShenandoahForwardedIsAliveClosure is_alive;
|
|
||||||
_root_updater->roots_do<ShenandoahForwardedIsAliveClosure, ShenandoahUpdateRefsClosure>(worker_id, &is_alive, &cl);
|
|
||||||
} else {
|
|
||||||
AlwaysTrueClosure always_true;;
|
|
||||||
_root_updater->roots_do<AlwaysTrueClosure, ShenandoahUpdateRefsClosure>(worker_id, &always_true, &cl);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
class ShenandoahConcurrentMarkingTask : public AbstractGangTask {
|
class ShenandoahConcurrentMarkingTask : public AbstractGangTask {
|
||||||
private:
|
private:
|
||||||
ShenandoahConcurrentMark* const _cm;
|
ShenandoahConcurrentMark* const _cm;
|
||||||
|
Loading…
Reference in New Issue
Block a user