8026752: Cancel MetaspaceGC request for a CMS concurrent collection after GC

Reviewed-by: sjohanss, sangheki
This commit is contained in:
Jon Masamitsu 2016-06-10 09:22:09 -07:00
parent 96627b1708
commit 35ba62637e
3 changed files with 78 additions and 0 deletions

View file

@ -1605,6 +1605,9 @@ void CMSCollector::do_compaction_work(bool clear_all_soft_refs) {
_inter_sweep_timer.reset();
_inter_sweep_timer.start();
// No longer a need to do a concurrent collection for Metaspace.
MetaspaceGC::set_should_concurrent_collect(false);
gch->post_full_gc_dump(gc_timer);
gc_timer->register_gc_end();