Skip to content

Commit 55463b0

Browse files
committed
8261984: Shenandoah: Remove unused ShenandoahPushWorkerQueuesScope class
Reviewed-by: shade
1 parent a180a38 commit 55463b0

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

src/hotspot/share/gc/shenandoah/shenandoahWorkGroup.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2018, Red Hat, Inc. All rights reserved.
2+
* Copyright (c) 2017, 2021, Red Hat, Inc. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -71,16 +71,6 @@ ShenandoahPushWorkerScope::~ShenandoahPushWorkerScope() {
7171
assert(nworkers == _old_workers, "Must be able to restore");
7272
}
7373

74-
ShenandoahPushWorkerQueuesScope::ShenandoahPushWorkerQueuesScope(WorkGang* workers, ShenandoahObjToScanQueueSet* queues, uint nworkers, bool check) :
75-
ShenandoahPushWorkerScope(workers, nworkers, check), _queues(queues) {
76-
_queues->reserve(_n_workers);
77-
}
78-
79-
ShenandoahPushWorkerQueuesScope::~ShenandoahPushWorkerQueuesScope() {
80-
// Restore old worker value
81-
_queues->reserve(_old_workers);
82-
}
83-
8474
AbstractGangWorker* ShenandoahWorkGang::install_worker(uint which) {
8575
AbstractGangWorker* worker = WorkGang::install_worker(which);
8676
ShenandoahThreadLocalData::create(worker);

src/hotspot/share/gc/shenandoah/shenandoahWorkGroup.hpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2019, Red Hat, Inc. All rights reserved.
2+
* Copyright (c) 2017, 2021, Red Hat, Inc. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -51,15 +51,6 @@ class ShenandoahPushWorkerScope : StackObj {
5151
~ShenandoahPushWorkerScope();
5252
};
5353

54-
class ShenandoahPushWorkerQueuesScope : public ShenandoahPushWorkerScope {
55-
private:
56-
ShenandoahObjToScanQueueSet* _queues;
57-
58-
public:
59-
ShenandoahPushWorkerQueuesScope(WorkGang* workers, ShenandoahObjToScanQueueSet* queues, uint nworkers, bool do_check = true);
60-
~ShenandoahPushWorkerQueuesScope();
61-
};
62-
6354
class ShenandoahWorkGang : public WorkGang {
6455
private:
6556
bool _initialize_gclab;

0 commit comments

Comments
 (0)