comparison src/share/vm/runtime/safepoint.cpp @ 17935:7384f6a12fc1

8038212: Method::is_valid_method() check has performance regression impact for stackwalking Summary: Only prune metaspace virtual spaces at safepoint so walking them is safe outside a safepoint. Reviewed-by: mgerdin, mgronlun, hseigel, stefank
author coleenp
date Thu, 15 May 2014 18:23:26 -0400
parents f42c10a3d4b1
children 78bbf4d43a14
comparison
equal deleted inserted replaced
17934:366c198c896d 17935:7384f6a12fc1
536 // rotate log files? 536 // rotate log files?
537 if (UseGCLogFileRotation) { 537 if (UseGCLogFileRotation) {
538 gclog_or_tty->rotate_log(false); 538 gclog_or_tty->rotate_log(false);
539 } 539 }
540 540
541 {
542 // CMS delays purging the CLDG until the beginning of the next safepoint and to
543 // make sure concurrent sweep is done
544 TraceTime t7("purging class loader data graph", TraceSafepointCleanupTime);
545 ClassLoaderDataGraph::purge_if_needed();
546 }
547
541 if (MemTracker::is_on()) { 548 if (MemTracker::is_on()) {
542 MemTracker::sync(); 549 MemTracker::sync();
543 } 550 }
544 } 551 }
545 552