8260263: Remove PtrQueue::_qset

Remove dead code related to PtrQueue::_qset and itself.

Reviewed-by: kbarrett, sjohanss
This commit is contained in:
Thomas Schatzl 2021-01-25 08:38:47 +00:00
parent 5898ab6545
commit d825339da5
4 changed files with 3 additions and 24 deletions

View File

@ -49,8 +49,6 @@ public:
// doing something else, with auto-flush on completion.
~G1DirtyCardQueue();
inline G1DirtyCardQueueSet* dirty_card_qset() const;
G1ConcurrentRefineStats* refinement_stats() const {
return _refinement_stats;
}
@ -351,8 +349,4 @@ public:
void discard_max_cards_padding();
};
inline G1DirtyCardQueueSet* G1DirtyCardQueue::dirty_card_qset() const {
return static_cast<G1DirtyCardQueueSet*>(qset());
}
#endif // SHARE_GC_G1_G1DIRTYCARDQUEUE_HPP

View File

@ -36,7 +36,6 @@
#include <new>
PtrQueue::PtrQueue(PtrQueueSet* qset) :
_qset(qset),
_index(0),
_capacity_in_bytes(index_to_byte_index(qset->buffer_size())),
_buf(NULL)

View File

@ -44,9 +44,6 @@ class PtrQueue {
NONCOPYABLE(PtrQueue);
// The ptr queue set to which this queue belongs.
PtrQueueSet* const _qset;
// The (byte) index at which an object was last enqueued. Starts at
// capacity (in bytes) (indicating an empty buffer) and goes towards zero.
// Value is always pointer-size aligned.
@ -77,8 +74,6 @@ protected:
// The buffer.
void** _buf;
PtrQueueSet* qset() const { return _qset; }
// Initialize this queue to contain a null buffer, and be part of the
// given PtrQueueSet.
PtrQueue(PtrQueueSet* qset);

View File

@ -54,16 +54,15 @@ private:
// active state, to support inline barriers in compiled code.
bool _active;
// Filter out unwanted entries from the buffer.
inline void filter();
public:
SATBMarkQueue(SATBMarkQueueSet* qset);
bool is_active() const { return _active; }
void set_active(bool value) { _active = value; }
inline SATBMarkQueueSet* satb_qset() const;
// Apply cl to the active part of the buffer.
// Prerequisite: Must be at a safepoint.
void apply_closure_and_empty(SATBBufferClosure* cl);
#ifndef PRODUCT
// Helpful for debugging
@ -174,14 +173,6 @@ public:
void abandon_partial_marking();
};
inline SATBMarkQueueSet* SATBMarkQueue::satb_qset() const {
return static_cast<SATBMarkQueueSet*>(qset());
}
inline void SATBMarkQueue::filter() {
satb_qset()->filter(*this);
}
// Removes entries from queue's buffer that are no longer needed, as
// determined by filter. If e is a void* entry in queue's buffer,
// filter_out(e) must be a valid expression whose value is convertible