--- old/src/hotspot/share/gc/serial/defNewGeneration.cpp 2017-10-17 22:53:44.092284013 +0200 +++ new/src/hotspot/share/gc/serial/defNewGeneration.cpp 2017-10-17 22:53:43.820275220 +0200 @@ -41,6 +41,7 @@ #include "gc/shared/space.inline.hpp" #include "gc/shared/spaceDecorator.hpp" #include "gc/shared/strongRootsScope.hpp" +#include "gc/shared/weakProcessor.hpp" #include "logging/log.hpp" #include "memory/iterator.hpp" #include "memory/resourceArea.hpp" @@ -658,6 +659,8 @@ gc_tracer.report_tenuring_threshold(tenuring_threshold()); pt.print_all_references(); + WeakProcessor::weak_oops_do(&is_alive, &keep_alive); + if (!_promotion_failed) { // Swap the survivor spaces. eden()->clear(SpaceDecorator::Mangle);