mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
6782663: Data produced by PrintGCApplicationConcurrentTime and PrintGCApplicationStoppedTime is not accurate
Update and display the timers associated with these flags for all safepoints. Reviewed-by: ysr, jcoomes
This commit is contained in:
parent
a88853347f
commit
0356567ed8
2 changed files with 18 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 1998-2009 Sun Microsystems, Inc. All Rights Reserved.
|
||||
* Copyright 1998-2010 Sun Microsystems, Inc. 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
|
||||
|
@ -426,11 +426,6 @@ void VMThread::loop() {
|
|||
// follow that also require a safepoint
|
||||
if (_cur_vm_operation->evaluate_at_safepoint()) {
|
||||
|
||||
if (PrintGCApplicationConcurrentTime) {
|
||||
gclog_or_tty->print_cr("Application time: %3.7f seconds",
|
||||
RuntimeService::last_application_time_sec());
|
||||
}
|
||||
|
||||
_vm_queue->set_drain_list(safepoint_ops); // ensure ops can be scanned
|
||||
|
||||
SafepointSynchronize::begin();
|
||||
|
@ -477,12 +472,6 @@ void VMThread::loop() {
|
|||
// Complete safepoint synchronization
|
||||
SafepointSynchronize::end();
|
||||
|
||||
if (PrintGCApplicationStoppedTime) {
|
||||
gclog_or_tty->print_cr("Total time for which application threads "
|
||||
"were stopped: %3.7f seconds",
|
||||
RuntimeService::last_safepoint_time_sec());
|
||||
}
|
||||
|
||||
} else { // not a safepoint operation
|
||||
if (TraceLongCompiles) {
|
||||
elapsedTimer t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue