8240722: [BACKOUT] G1DirtyCardQueue destructor has useless flush

Backout JDK-8240133

Reviewed-by: sjohanss
This commit is contained in:
Kim Barrett 2020-03-09 04:06:37 -04:00
parent ba2e4178ce
commit 1c1fb44ac1
2 changed files with 8 additions and 0 deletions

@ -50,6 +50,10 @@ G1DirtyCardQueue::G1DirtyCardQueue(G1DirtyCardQueueSet* qset) :
PtrQueue(qset, true /* active */)
{ }
G1DirtyCardQueue::~G1DirtyCardQueue() {
flush();
}
void G1DirtyCardQueue::handle_completed_buffer() {
assert(_buf != NULL, "precondition");
BufferNode* node = BufferNode::make_node_from_buffer(_buf, index());

@ -44,6 +44,10 @@ protected:
public:
G1DirtyCardQueue(G1DirtyCardQueueSet* qset);
// Flush before destroying; queue may be used to capture pending work while
// doing something else, with auto-flush on completion.
~G1DirtyCardQueue();
// Process queue entries and release resources.
void flush() { flush_impl(); }