mirror of
https://github.com/darlinghq/darling-openjdk.git
synced 2024-11-23 12:29:56 +00:00
8240915: Shenandoah: Remove unused fields in init mark tasks
Reviewed-by: rkennke
This commit is contained in:
parent
bb42321076
commit
95d2178ba3
@ -83,12 +83,10 @@ template<UpdateRefsMode UPDATE_REFS>
|
|||||||
class ShenandoahInitMarkRootsTask : public AbstractGangTask {
|
class ShenandoahInitMarkRootsTask : public AbstractGangTask {
|
||||||
private:
|
private:
|
||||||
ShenandoahAllRootScanner* _rp;
|
ShenandoahAllRootScanner* _rp;
|
||||||
bool _process_refs;
|
|
||||||
public:
|
public:
|
||||||
ShenandoahInitMarkRootsTask(ShenandoahAllRootScanner* rp, bool process_refs) :
|
ShenandoahInitMarkRootsTask(ShenandoahAllRootScanner* rp) :
|
||||||
AbstractGangTask("Shenandoah init mark roots task"),
|
AbstractGangTask("Shenandoah init mark roots task"),
|
||||||
_rp(rp),
|
_rp(rp) {
|
||||||
_process_refs(process_refs) {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void work(uint worker_id) {
|
void work(uint worker_id) {
|
||||||
@ -260,12 +258,12 @@ void ShenandoahConcurrentMark::mark_roots(ShenandoahPhaseTimings::Phase root_pha
|
|||||||
task_queues()->reserve(nworkers);
|
task_queues()->reserve(nworkers);
|
||||||
|
|
||||||
if (heap->has_forwarded_objects()) {
|
if (heap->has_forwarded_objects()) {
|
||||||
ShenandoahInitMarkRootsTask<RESOLVE> mark_roots(&root_proc, _heap->process_references());
|
ShenandoahInitMarkRootsTask<RESOLVE> mark_roots(&root_proc);
|
||||||
workers->run_task(&mark_roots);
|
workers->run_task(&mark_roots);
|
||||||
} else {
|
} else {
|
||||||
// No need to update references, which means the heap is stable.
|
// No need to update references, which means the heap is stable.
|
||||||
// Can save time not walking through forwarding pointers.
|
// Can save time not walking through forwarding pointers.
|
||||||
ShenandoahInitMarkRootsTask<NONE> mark_roots(&root_proc, _heap->process_references());
|
ShenandoahInitMarkRootsTask<NONE> mark_roots(&root_proc);
|
||||||
workers->run_task(&mark_roots);
|
workers->run_task(&mark_roots);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -161,8 +161,6 @@ class ShenandoahInitTraversalCollectionTask : public AbstractGangTask {
|
|||||||
private:
|
private:
|
||||||
ShenandoahCSetRootScanner* _rp;
|
ShenandoahCSetRootScanner* _rp;
|
||||||
ShenandoahHeap* _heap;
|
ShenandoahHeap* _heap;
|
||||||
ShenandoahCsetCodeRootsIterator* _cset_coderoots;
|
|
||||||
ShenandoahStringDedupRoots _dedup_roots;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ShenandoahInitTraversalCollectionTask(ShenandoahCSetRootScanner* rp) :
|
ShenandoahInitTraversalCollectionTask(ShenandoahCSetRootScanner* rp) :
|
||||||
|
Loading…
Reference in New Issue
Block a user