src/hotspot/share/runtime/safepoint.cpp
changeset 51865 eb954a4b6083
parent 51598 c88019b32bc4
child 51959 db0c3952de52
--- 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);