--- a/src/hotspot/share/gc/cms/parNewGeneration.cpp Wed Oct 18 14:31:10 2017 +0200
+++ b/src/hotspot/share/gc/cms/parNewGeneration.cpp Wed Oct 18 21:13:35 2017 +0200
@@ -46,6 +46,7 @@
#include "gc/shared/spaceDecorator.hpp"
#include "gc/shared/strongRootsScope.hpp"
#include "gc/shared/taskqueue.inline.hpp"
+#include "gc/shared/weakProcessor.hpp"
#include "gc/shared/workgroup.hpp"
#include "logging/log.hpp"
#include "logging/logStream.hpp"
@@ -999,6 +1000,8 @@
_gc_tracer.report_tenuring_threshold(tenuring_threshold());
pt.print_all_references();
+ WeakProcessor::weak_oops_do(&is_alive, &keep_alive, &evacuate_followers);
+
if (!promotion_failed()) {
// Swap the survivor spaces.
eden()->clear(SpaceDecorator::Mangle);