8223267: Fix incorrect usage of GCTraceTime in g1FullCollector and g1CollectedHeap

Reviewed-by: kbarrett, tschatzl
This commit is contained in:
Man Cao 2019-05-02 15:46:34 -07:00
parent a03338e219
commit ce32bc437c
2 changed files with 2 additions and 2 deletions

View File

@ -1092,7 +1092,7 @@ void G1CollectedHeap::verify_after_full_collection() {
// the full GC has compacted objects and updated TAMS but not updated
// the prev bitmap.
if (G1VerifyBitmaps) {
GCTraceTime(Debug, gc)("Clear Prev Bitmap for Verification");
GCTraceTime(Debug, gc) tm("Clear Prev Bitmap for Verification");
_cm->clear_prev_bitmap(workers());
}
// This call implicitly verifies that the next bitmap is clear after Full GC.

View File

@ -289,6 +289,6 @@ void G1FullCollector::verify_after_marking() {
// fail. At the end of the GC, the original mark word values
// (including hash values) are restored to the appropriate
// objects.
GCTraceTime(Info, gc, verify)("Verifying During GC (full)");
GCTraceTime(Info, gc, verify) tm("Verifying During GC (full)");
_heap->verify(VerifyOption_G1UseFullMarking);
}