diff options
author | Sung Yoon Whang <suwhang@microsoft.com> | 2019-02-21 14:19:27 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-21 14:19:27 -0800 |
commit | 2dfd1779ae9eebe89b223cff6fd77825301971dd (patch) | |
tree | cc1694ef83deb63b2f178d3f4b195d2bb679d1e0 /src/vm/threads.cpp | |
parent | a006c44d06d56829a230bbbce17b74b21a0b8842 (diff) | |
download | coreclr-2dfd1779ae9eebe89b223cff6fd77825301971dd.tar.gz coreclr-2dfd1779ae9eebe89b223cff6fd77825301971dd.tar.bz2 coreclr-2dfd1779ae9eebe89b223cff6fd77825301971dd.zip |
Remove unused perfcounter code (#22742)
* removing references to COUNTER_ONLY, ENABLE_PERF_COUNTERS in src/vm directory
* removing perfcounters* files
* Fix build
* Remove PerfCounterSupportedBuild
* Some more cleanup on the GC side
Diffstat (limited to 'src/vm/threads.cpp')
-rw-r--r-- | src/vm/threads.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/vm/threads.cpp b/src/vm/threads.cpp index 8bb63b7532..7b99d2bd91 100644 --- a/src/vm/threads.cpp +++ b/src/vm/threads.cpp @@ -23,7 +23,6 @@ #include "corprof.h" // profiling #include "eeprofinterfaces.h" #include "eeconfig.h" -#include "perfcounters.h" #include "corhost.h" #include "win32threadpool.h" #include "jitinterface.h" @@ -1494,9 +1493,6 @@ Thread::Thread() _ASSERTE((((size_t) &m_State) & 3) == 0); _ASSERTE((((size_t) &m_ThreadTasks) & 3) == 0); - // Track perf counter for the logical thread object. - COUNTER_ONLY(GetPerfCounters().m_LocksAndThreads.cCurrentThreadsLogical++); - // On all callbacks, call the trap code, which we now have // wired to cause a GC. Thus we will do a GC on all Transition Frame Transitions (and more). if (GCStress<cfg_transition>::IsEnabled()) @@ -1654,15 +1650,6 @@ BOOL Thread::InitThread(BOOL fInternal) // log will not allocate memory at these critical times an avoid deadlock. STRESS_LOG2(LF_ALWAYS, LL_ALWAYS, "SetupThread managed Thread %p Thread Id = %x\n", this, GetThreadId()); - if ((m_State & TS_WeOwn) == 0) - { - COUNTER_ONLY(GetPerfCounters().m_LocksAndThreads.cRecognizedThreads++); - } - else - { - COUNTER_ONLY(GetPerfCounters().m_LocksAndThreads.cCurrentThreadsPhysical++); - } - #ifndef FEATURE_PAL // workaround: Remove this when we flow impersonation token to host. BOOL reverted = FALSE; @@ -2609,20 +2596,6 @@ Thread::~Thread() m_pFrame = (Frame *)POISONC; #endif - // Update Perfmon counters. - COUNTER_ONLY(GetPerfCounters().m_LocksAndThreads.cCurrentThreadsLogical--); - - // Current recognized threads are non-runtime threads that are alive and ran under the - // runtime. Check whether this Thread was one of them. - if ((m_State & TS_WeOwn) == 0) - { - COUNTER_ONLY(GetPerfCounters().m_LocksAndThreads.cRecognizedThreads--); - } - else - { - COUNTER_ONLY(GetPerfCounters().m_LocksAndThreads.cCurrentThreadsPhysical--); - } - // Normally we shouldn't get here with a valid thread handle; however if SetupThread // failed (due to an OOM for example) then we need to CloseHandle the thread // handle if we own it. |