mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8254029: ObjectMonitor cleanup/minor bug-fix changes extracted from JDK-8253064
Reviewed-by: dholmes, eosterlund
This commit is contained in:
parent
7a580ca8c0
commit
c87cdf70e4
8 changed files with 125 additions and 114 deletions
|
@ -431,16 +431,6 @@ int VM_Exit::wait_for_threads_in_native_to_block() {
|
|||
}
|
||||
}
|
||||
|
||||
bool VM_Exit::doit_prologue() {
|
||||
if (log_is_enabled(Info, monitorinflation)) {
|
||||
// Do a deflation in order to reduce the in-use monitor population
|
||||
// that is reported by ObjectSynchronizer::log_in_use_monitor_details()
|
||||
// at VM exit.
|
||||
ObjectSynchronizer::request_deflate_idle_monitors();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void VM_Exit::doit() {
|
||||
|
||||
if (VerifyBeforeExit) {
|
||||
|
@ -463,6 +453,10 @@ void VM_Exit::doit() {
|
|||
|
||||
set_vm_exited();
|
||||
|
||||
// The ObjectMonitor subsystem uses perf counters so do this before
|
||||
// we call exit_globals() so we don't run afoul of perfMemory_exit().
|
||||
ObjectSynchronizer::do_final_audit_and_print_stats();
|
||||
|
||||
// We'd like to call IdealGraphPrinter::clean_up() to finalize the
|
||||
// XML logging, but we can't safely do that here. The logic to make
|
||||
// XML termination logging safe is tied to the termination of the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue