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