6814467: G1: small fixes related to concurrent marking verboseness
A few small fixes to remove some inconsistencies in the concurrent mark-related verbose GC output. Reviewed-by: jmasa
This commit is contained in:
parent
8893530f3a
commit
e4e765e34e
@ -420,6 +420,10 @@ ConcurrentMark::ConcurrentMark(ReservedSpace rs,
|
|||||||
|
|
||||||
_has_overflown(false),
|
_has_overflown(false),
|
||||||
_concurrent(false),
|
_concurrent(false),
|
||||||
|
_has_aborted(false),
|
||||||
|
_restart_for_overflow(false),
|
||||||
|
_concurrent_marking_in_progress(false),
|
||||||
|
_should_gray_objects(false),
|
||||||
|
|
||||||
// _verbose_level set below
|
// _verbose_level set below
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ void ConcurrentMarkThread::run() {
|
|||||||
if (PrintGC) {
|
if (PrintGC) {
|
||||||
gclog_or_tty->date_stamp(PrintGCDateStamps);
|
gclog_or_tty->date_stamp(PrintGCDateStamps);
|
||||||
gclog_or_tty->stamp(PrintGCTimeStamps);
|
gclog_or_tty->stamp(PrintGCTimeStamps);
|
||||||
tty->print_cr("[GC concurrent-mark-start]");
|
gclog_or_tty->print_cr("[GC concurrent-mark-start]");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!g1_policy->in_young_gc_mode()) {
|
if (!g1_policy->in_young_gc_mode()) {
|
||||||
@ -320,8 +320,6 @@ void ConcurrentMarkThread::sleepBeforeNextCycle() {
|
|||||||
set_in_progress();
|
set_in_progress();
|
||||||
clear_started();
|
clear_started();
|
||||||
if (TraceConcurrentMark) gclog_or_tty->print_cr("CM-starting");
|
if (TraceConcurrentMark) gclog_or_tty->print_cr("CM-starting");
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Note: this method, although exported by the ConcurrentMarkSweepThread,
|
// Note: this method, although exported by the ConcurrentMarkSweepThread,
|
||||||
|
@ -2332,7 +2332,6 @@ class VerifyMarkedObjsClosure: public ObjectClosure {
|
|||||||
void
|
void
|
||||||
G1CollectedHeap::checkConcurrentMark() {
|
G1CollectedHeap::checkConcurrentMark() {
|
||||||
VerifyMarkedObjsClosure verifycl(this);
|
VerifyMarkedObjsClosure verifycl(this);
|
||||||
doConcurrentMark();
|
|
||||||
// MutexLockerEx x(getMarkBitMapLock(),
|
// MutexLockerEx x(getMarkBitMapLock(),
|
||||||
// Mutex::_no_safepoint_check_flag);
|
// Mutex::_no_safepoint_check_flag);
|
||||||
object_iterate(&verifycl);
|
object_iterate(&verifycl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user