8261984: Shenandoah: Remove unused ShenandoahPushWorkerQueuesScope class

Reviewed-by: shade
This commit is contained in:
Zhengyu Gu 2021-02-19 13:43:27 +00:00
parent a180a38618
commit 55463b0486
2 changed files with 2 additions and 21 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Red Hat, Inc. All rights reserved.
* Copyright (c) 2017, 2021, Red Hat, Inc. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -71,16 +71,6 @@ ShenandoahPushWorkerScope::~ShenandoahPushWorkerScope() {
assert(nworkers == _old_workers, "Must be able to restore");
}
ShenandoahPushWorkerQueuesScope::ShenandoahPushWorkerQueuesScope(WorkGang* workers, ShenandoahObjToScanQueueSet* queues, uint nworkers, bool check) :
ShenandoahPushWorkerScope(workers, nworkers, check), _queues(queues) {
_queues->reserve(_n_workers);
}
ShenandoahPushWorkerQueuesScope::~ShenandoahPushWorkerQueuesScope() {
// Restore old worker value
_queues->reserve(_old_workers);
}
AbstractGangWorker* ShenandoahWorkGang::install_worker(uint which) {
AbstractGangWorker* worker = WorkGang::install_worker(which);
ShenandoahThreadLocalData::create(worker);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2019, Red Hat, Inc. All rights reserved.
* Copyright (c) 2017, 2021, Red Hat, Inc. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -51,15 +51,6 @@ public:
~ShenandoahPushWorkerScope();
};
class ShenandoahPushWorkerQueuesScope : public ShenandoahPushWorkerScope {
private:
ShenandoahObjToScanQueueSet* _queues;
public:
ShenandoahPushWorkerQueuesScope(WorkGang* workers, ShenandoahObjToScanQueueSet* queues, uint nworkers, bool do_check = true);
~ShenandoahPushWorkerQueuesScope();
};
class ShenandoahWorkGang : public WorkGang {
private:
bool _initialize_gclab;