Cleanup unnecessary COUNTER_ONLY (dotnet/coreclr#22759)
authorJan Kotas <jkotas@microsoft.com>
Fri, 22 Feb 2019 02:16:16 +0000 (18:16 -0800)
committerGitHub <noreply@github.com>
Fri, 22 Feb 2019 02:16:16 +0000 (18:16 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/bd84f468ac3f82847669d49614d01eba8dd2a9a0

src/coreclr/src/gc/gcee.cpp
src/coreclr/src/gc/handletable.cpp

index 8706ae7..bd5a8f6 100644 (file)
@@ -71,7 +71,7 @@ void GCHeap::UpdatePreGCCounters()
 #endif //_PREFAST_
     if (hp->settings.reason == reason_induced IN_STRESS_HEAP( && !hp->settings.stress_induced))
     {
-        COUNTER_ONLY(GetPerfCounters().m_GC.cInducedGCs++);
+        GetPerfCounters().m_GC.cInducedGCs++;
     }
 
     GetPerfCounters().m_Security.timeRTchecks = 0;
index 2480a56..274c6ff 100644 (file)
@@ -186,7 +186,7 @@ void HndDestroyHandleTable(HHANDLETABLE hTable)
 
 #ifdef ENABLE_PERF_COUNTERS
     // decrement handle count by number of handles in this table
-    COUNTER_ONLY(GetPerfCounters().m_GC.cHandles -= HndCountHandles(hTable));
+    GetPerfCounters().m_GC.cHandles -= HndCountHandles(hTable);
 #endif
 
     // We are going to free the memory for this HandleTable.