--- a/src/hotspot/share/runtime/safepoint.cpp Tue Sep 25 14:23:37 2018 +0200
+++ b/src/hotspot/share/runtime/safepoint.cpp Mon Sep 24 18:44:39 2018 +0200
@@ -598,7 +598,8 @@
public:
ParallelSPCleanupThreadClosure(DeflateMonitorCounters* counters) :
- _nmethod_cl(NMethodSweeper::prepare_mark_active_nmethods()), _counters(counters) {}
+ _nmethod_cl(UseCodeAging ? NMethodSweeper::prepare_reset_hotness_counters() : NULL),
+ _counters(counters) {}
void do_thread(Thread* thread) {
ObjectSynchronizer::deflate_thread_local_monitors(thread, _counters);