mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8038212: Method::is_valid_method() check has performance regression impact for stackwalking
Only prune metaspace virtual spaces at safepoint so walking them is safe outside a safepoint. Reviewed-by: mgerdin, mgronlun, hseigel, stefank
This commit is contained in:
parent
cc3c656cf1
commit
c336175c94
13 changed files with 84 additions and 72 deletions
|
@ -541,6 +541,13 @@ void SafepointSynchronize::do_cleanup_tasks() {
|
|||
gclog_or_tty->rotate_log(false);
|
||||
}
|
||||
|
||||
{
|
||||
// CMS delays purging the CLDG until the beginning of the next safepoint and to
|
||||
// make sure concurrent sweep is done
|
||||
TraceTime t7("purging class loader data graph", TraceSafepointCleanupTime);
|
||||
ClassLoaderDataGraph::purge_if_needed();
|
||||
}
|
||||
|
||||
if (MemTracker::is_on()) {
|
||||
MemTracker::sync();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue