mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8217659: monitor_logging updates from Async Monitor Deflation project
Reviewed-by: dholmes, coleenp, rehn
This commit is contained in:
parent
73ccdf3557
commit
73733d6a18
5 changed files with 432 additions and 47 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -166,6 +166,13 @@ void exit_globals() {
|
|||
static bool destructorsCalled = false;
|
||||
if (!destructorsCalled) {
|
||||
destructorsCalled = true;
|
||||
if (log_is_enabled(Info, monitorinflation)) {
|
||||
// The ObjectMonitor subsystem uses perf counters so
|
||||
// do this before perfMemory_exit().
|
||||
// ObjectSynchronizer::finish_deflate_idle_monitors()'s call
|
||||
// to audit_and_print_stats() is done at the Debug level.
|
||||
ObjectSynchronizer::audit_and_print_stats(true /* on_exit */);
|
||||
}
|
||||
perfMemory_exit();
|
||||
if (log_is_enabled(Debug, safepoint, stats)) {
|
||||
// Print the collected safepoint statistics.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue