52 lines
1.4 KiB
Diff
52 lines
1.4 KiB
Diff
|
|
From 79a2de08f6a6aa5113e730bd9bc58229f7a2da14 Mon Sep 17 00:00:00 2001
|
||
|
|
Date: Fri, 22 Jan 2021 16:21:34 +0800
|
||
|
|
Subject: Remove unused GenericTaskQueueSet<T, F>::tasks()
|
||
|
|
|
||
|
|
Summary: <gc>: remove unused GenericTaskQueueSet<T, F>::tasks()
|
||
|
|
LLT: NA
|
||
|
|
Bug url: NA
|
||
|
|
---
|
||
|
|
hotspot/src/share/vm/utilities/taskqueue.hpp | 12 ------------
|
||
|
|
1 file changed, 12 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/hotspot/src/share/vm/utilities/taskqueue.hpp b/hotspot/src/share/vm/utilities/taskqueue.hpp
|
||
|
|
index 77556a7d4..3df7744dc 100644
|
||
|
|
--- a/hotspot/src/share/vm/utilities/taskqueue.hpp
|
||
|
|
+++ b/hotspot/src/share/vm/utilities/taskqueue.hpp
|
||
|
|
@@ -543,8 +543,6 @@ class TaskQueueSetSuper {
|
||
|
|
public:
|
||
|
|
// Returns "true" if some TaskQueue in the set contains a task.
|
||
|
|
virtual bool peek() = 0;
|
||
|
|
- // Tasks in queue
|
||
|
|
- virtual uint tasks() const = 0;
|
||
|
|
virtual size_t tasks() = 0;
|
||
|
|
};
|
||
|
|
|
||
|
|
@@ -578,7 +576,6 @@ public:
|
||
|
|
// Returns if stealing succeeds, and sets "t" to the stolen task.
|
||
|
|
bool steal(uint queue_num, E& t);
|
||
|
|
bool peek();
|
||
|
|
- uint tasks() const;
|
||
|
|
size_t tasks();
|
||
|
|
|
||
|
|
uint size() const { return _n; }
|
||
|
|
@@ -677,15 +674,6 @@ size_t GenericTaskQueueSet<T, F>::tasks() {
|
||
|
|
return n;
|
||
|
|
}
|
||
|
|
|
||
|
|
-template<class T, MEMFLAGS F>
|
||
|
|
-uint GenericTaskQueueSet<T, F>::tasks() const {
|
||
|
|
- uint n = 0;
|
||
|
|
- for (uint j = 0; j < _n; j++) {
|
||
|
|
- n += _queues[j]->size();
|
||
|
|
- }
|
||
|
|
- return n;
|
||
|
|
-}
|
||
|
|
-
|
||
|
|
// When to terminate from the termination protocol.
|
||
|
|
class TerminatorTerminator: public CHeapObj<mtInternal> {
|
||
|
|
public:
|
||
|
|
--
|
||
|
|
2.19.0
|
||
|
|
|