src/hotspot/share/gc/serial/genMarkSweep.cpp
changeset 47676 b1c020fc35a3
parent 47648 226b1fc611b9
child 47799 1772ebf07d1f
--- a/src/hotspot/share/gc/serial/genMarkSweep.cpp	Mon Oct 23 03:15:19 2017 -0400
+++ b/src/hotspot/share/gc/serial/genMarkSweep.cpp	Mon Oct 23 11:20:53 2017 +0200
@@ -218,14 +218,14 @@
     gc_tracer()->report_gc_reference_stats(stats);
   }
 
+  // This is the point where the entire marking should have completed.
+  assert(_marking_stack.is_empty(), "Marking should have completed");
+
   {
     GCTraceTime(Debug, gc, phases) tm_m("Weak Processing", gc_timer());
-    WeakProcessor::weak_oops_do(&is_alive, &keep_alive, &follow_stack_closure);
+    WeakProcessor::weak_oops_do(&is_alive, &do_nothing_cl);
   }
 
-  // This is the point where the entire marking should have completed.
-  assert(_marking_stack.is_empty(), "Marking should have completed");
-
   {
     GCTraceTime(Debug, gc, phases) tm_m("Class Unloading", gc_timer());