--- old/src/hotspot/share/gc/cms/parNewGeneration.cpp 2017-10-16 15:55:13.988954876 +0200 +++ new/src/hotspot/share/gc/cms/parNewGeneration.cpp 2017-10-16 15:55:13.744946663 +0200 @@ -45,6 +45,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" @@ -998,6 +999,8 @@ _gc_tracer.report_tenuring_threshold(tenuring_threshold()); pt.print_all_references(); + WeakProcessor::unlink_or_oops_do(&is_alive, &keep_alive); + if (!promotion_failed()) { // Swap the survivor spaces. eden()->clear(SpaceDecorator::Mangle);