--- a/src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp Wed Oct 18 14:31:10 2017 +0200
+++ b/src/hotspot/share/gc/cms/concurrentMarkSweepGeneration.cpp Wed Oct 18 21:13:35 2017 +0200
@@ -55,6 +55,7 @@
#include "gc/shared/referencePolicy.hpp"
#include "gc/shared/strongRootsScope.hpp"
#include "gc/shared/taskqueue.inline.hpp"
+#include "gc/shared/weakProcessor.hpp"
#include "logging/log.hpp"
#include "logging/logStream.hpp"
#include "memory/allocation.hpp"
@@ -5224,6 +5225,11 @@
pt.print_all_references();
}
+ {
+ GCTraceTime(Debug, gc, phases) t("Weak Processing", _gc_timer_cm);
+ WeakProcessor::weak_oops_do(&_is_alive_closure, &cmsKeepAliveClosure, &cmsDrainMarkingStackClosure);
+ }
+
// This is the point where the entire marking should have completed.
verify_work_stacks_empty();