8223267: Fix incorrect usage of GCTraceTime in g1FullCollector and g1CollectedHeap
authormanc
Thu, 02 May 2019 15:46:34 -0700
changeset 54716 61d0e96a6b2d
parent 54715 239bc23e76cc
child 54717 b39365cebb73
child 57354 feba42009db9
8223267: Fix incorrect usage of GCTraceTime in g1FullCollector and g1CollectedHeap Reviewed-by: kbarrett, tschatzl
src/hotspot/share/gc/g1/g1CollectedHeap.cpp
src/hotspot/share/gc/g1/g1FullCollector.cpp
--- 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);
 }