src/hotspot/share/gc/g1/g1CollectedHeap.cpp
changeset 53102 35530ca3e0b2
parent 53034 de99beff5c0e
child 53121 4c4651aba203
--- a/src/hotspot/share/gc/g1/g1CollectedHeap.cpp	Tue Dec 25 18:35:42 2018 +0300
+++ b/src/hotspot/share/gc/g1/g1CollectedHeap.cpp	Wed Dec 26 19:24:00 2018 -0500
@@ -1949,9 +1949,8 @@
   while (dcqs.apply_closure_during_gc(cl, worker_i)) {
     n_completed_buffers++;
   }
+  assert(dcqs.completed_buffers_num() == 0, "Completed buffers exist!");
   g1_policy()->phase_times()->record_thread_work_item(G1GCPhaseTimes::UpdateRS, worker_i, n_completed_buffers, G1GCPhaseTimes::UpdateRSProcessedBuffers);
-  dcqs.clear_n_completed_buffers();
-  assert(!dcqs.completed_buffers_exist_dirty(), "Completed buffers exist!");
 }
 
 // Computes the sum of the storage used by the various regions.