8132849: Increased stop time in cleanup phase because of single-threaded walk of thread stacks in NMethodSweeper::mark_active_nmethods()

Reviewed-by: eosterlund, zgu, thartmann
This commit is contained in:
Roman Kennke 2018-09-24 18:44:39 +02:00
parent 7c9ab50d06
commit c87e7672a6
3 changed files with 99 additions and 22 deletions

View file

@ -598,7 +598,8 @@ private:
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);