8223267: Fix incorrect usage of GCTraceTime in g1FullCollector and g1CollectedHeap
Reviewed-by: kbarrett, tschatzl
--- a/src/hotspot/share/gc/g1/g1CollectedHeap.cpp Sun May 05 09:10:21 2019 -0400
+++ b/src/hotspot/share/gc/g1/g1CollectedHeap.cpp Thu May 02 15:46:34 2019 -0700
@@ -1092,7 +1092,7 @@
// 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.
--- a/src/hotspot/share/gc/g1/g1FullCollector.cpp Sun May 05 09:10:21 2019 -0400
+++ b/src/hotspot/share/gc/g1/g1FullCollector.cpp Thu May 02 15:46:34 2019 -0700
@@ -289,6 +289,6 @@
// 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);
}