diff options
author | Jan Kotas <jkotas@microsoft.com> | 2015-12-16 15:26:25 -0800 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2015-12-16 16:09:07 -0800 |
commit | b65f0e718268ae400fda7556bf93f48472f9875d (patch) | |
tree | 39d337f94064e9488450e5e847b15b7ca2abf6c1 /src/gc/gcscan.cpp | |
parent | 36de3bebb8930bdad554143f9563b83a3356d7b7 (diff) | |
download | coreclr-b65f0e718268ae400fda7556bf93f48472f9875d.tar.gz coreclr-b65f0e718268ae400fda7556bf93f48472f9875d.tar.bz2 coreclr-b65f0e718268ae400fda7556bf93f48472f9875d.zip |
Rename CNameSpace to GCScan
Diffstat (limited to 'src/gc/gcscan.cpp')
-rw-r--r-- | src/gc/gcscan.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/gc/gcscan.cpp b/src/gc/gcscan.cpp index dd7b4c1be6..621ffad7f3 100644 --- a/src/gc/gcscan.cpp +++ b/src/gc/gcscan.cpp @@ -22,12 +22,12 @@ //#define CATCH_GC //catches exception during GC #ifdef DACCESS_COMPILE -SVAL_IMPL_INIT(int32_t, CNameSpace, m_GcStructuresInvalidCnt, 1); +SVAL_IMPL_INIT(int32_t, GCScan, m_GcStructuresInvalidCnt, 1); #else //DACCESS_COMPILE -VOLATILE(int32_t) CNameSpace::m_GcStructuresInvalidCnt = 1; +VOLATILE(int32_t) GCScan::m_GcStructuresInvalidCnt = 1; #endif //DACCESS_COMPILE -bool CNameSpace::GetGcRuntimeStructuresValid () +bool GCScan::GetGcRuntimeStructuresValid () { LIMITED_METHOD_CONTRACT; SUPPORTS_DAC; @@ -39,7 +39,7 @@ bool CNameSpace::GetGcRuntimeStructuresValid () #ifndef FEATURE_REDHAWK void -CNameSpace::EnumMemoryRegions(CLRDataEnumMemoryFlags flags) +GCScan::EnumMemoryRegions(CLRDataEnumMemoryFlags flags) { UNREFERENCED_PARAMETER(flags); m_GcStructuresInvalidCnt.EnumMem(); @@ -62,7 +62,7 @@ CNameSpace::EnumMemoryRegions(CLRDataEnumMemoryFlags flags) // will still be correct and this scan allows us to spot a common optimization where no dependent handles are // due for retirement in this particular GC. This is an important optimization to take advantage of since // synchronizing the GC to calculate complete results is a costly operation. -void CNameSpace::GcDhInitialScan(promote_func* fn, int condemned, int max_gen, ScanContext* sc) +void GCScan::GcDhInitialScan(promote_func* fn, int condemned, int max_gen, ScanContext* sc) { // We allocate space for dependent handle scanning context during Ref_Initialize. Under server GC there // are actually as many contexts as heaps (and CPUs). Ref_GetDependentHandleContext() retrieves the @@ -87,7 +87,7 @@ void CNameSpace::GcDhInitialScan(promote_func* fn, int condemned, int max_gen, S // This method is called after GcDhInitialScan and before each subsequent scan (GcDhReScan below). It // determines whether any handles are left that have unpromoted secondaries. -bool CNameSpace::GcDhUnpromotedHandlesExist(ScanContext* sc) +bool GCScan::GcDhUnpromotedHandlesExist(ScanContext* sc) { WRAPPER_NO_CONTRACT; // Locate our dependent handle context based on the GC context. @@ -103,7 +103,7 @@ bool CNameSpace::GcDhUnpromotedHandlesExist(ScanContext* sc) // this method in a loop. The scan records state that let's us know when to terminate (no further handles to // be promoted or no promotions in the last scan). Returns true if at least one object was promoted as a // result of the scan. -bool CNameSpace::GcDhReScan(ScanContext* sc) +bool GCScan::GcDhReScan(ScanContext* sc) { // Locate our dependent handle context based on the GC context. DhContext *pDhContext = Ref_GetDependentHandleContext(sc); @@ -115,7 +115,7 @@ bool CNameSpace::GcDhReScan(ScanContext* sc) * Scan for dead weak pointers */ -void CNameSpace::GcWeakPtrScan( promote_func* fn, int condemned, int max_gen, ScanContext* sc ) +void GCScan::GcWeakPtrScan( promote_func* fn, int condemned, int max_gen, ScanContext* sc ) { // Clear out weak pointers that are no longer live. Ref_CheckReachable(condemned, max_gen, (uintptr_t)sc); @@ -143,19 +143,19 @@ static void CALLBACK CheckPromoted(_UNCHECKED_OBJECTREF *pObjRef, uintptr_t * /* } } -void CNameSpace::GcWeakPtrScanBySingleThread( int condemned, int max_gen, ScanContext* sc ) +void GCScan::GcWeakPtrScanBySingleThread( int condemned, int max_gen, ScanContext* sc ) { UNREFERENCED_PARAMETER(condemned); UNREFERENCED_PARAMETER(max_gen); GCToEEInterface::SyncBlockCacheWeakPtrScan(&CheckPromoted, (uintptr_t)sc, 0); } -void CNameSpace::GcScanSizedRefs(promote_func* fn, int condemned, int max_gen, ScanContext* sc) +void GCScan::GcScanSizedRefs(promote_func* fn, int condemned, int max_gen, ScanContext* sc) { Ref_ScanSizedRefHandles(condemned, max_gen, sc, fn); } -void CNameSpace::GcShortWeakPtrScan(promote_func* fn, int condemned, int max_gen, +void GCScan::GcShortWeakPtrScan(promote_func* fn, int condemned, int max_gen, ScanContext* sc) { UNREFERENCED_PARAMETER(fn); @@ -166,7 +166,7 @@ void CNameSpace::GcShortWeakPtrScan(promote_func* fn, int condemned, int max_ge * Scan all stack roots in this 'namespace' */ -void CNameSpace::GcScanRoots(promote_func* fn, int condemned, int max_gen, +void GCScan::GcScanRoots(promote_func* fn, int condemned, int max_gen, ScanContext* sc) { #if defined ( _DEBUG) && defined (CATCH_GC) @@ -190,7 +190,7 @@ void CNameSpace::GcScanRoots(promote_func* fn, int condemned, int max_gen, */ -void CNameSpace::GcScanHandles (promote_func* fn, int condemned, int max_gen, +void GCScan::GcScanHandles (promote_func* fn, int condemned, int max_gen, ScanContext* sc) { @@ -229,7 +229,7 @@ void CNameSpace::GcScanHandles (promote_func* fn, int condemned, int max_gen, * Scan all handle roots in this 'namespace' for profiling */ -void CNameSpace::GcScanHandlesForProfilerAndETW (int max_gen, ScanContext* sc) +void GCScan::GcScanHandlesForProfilerAndETW (int max_gen, ScanContext* sc) { LIMITED_METHOD_CONTRACT; @@ -254,7 +254,7 @@ void CNameSpace::GcScanHandlesForProfilerAndETW (int max_gen, ScanContext* sc) /* * Scan dependent handles in this 'namespace' for profiling */ -void CNameSpace::GcScanDependentHandlesForProfilerAndETW (int max_gen, ProfilingScanContext* sc) +void GCScan::GcScanDependentHandlesForProfilerAndETW (int max_gen, ProfilingScanContext* sc) { LIMITED_METHOD_CONTRACT; @@ -264,7 +264,7 @@ void CNameSpace::GcScanDependentHandlesForProfilerAndETW (int max_gen, Profiling #endif // defined(GC_PROFILING) || defined(FEATURE_EVENT_TRACE) -void CNameSpace::GcRuntimeStructuresValid (BOOL bValid) +void GCScan::GcRuntimeStructuresValid (BOOL bValid) { WRAPPER_NO_CONTRACT; if (!bValid) @@ -281,14 +281,14 @@ void CNameSpace::GcRuntimeStructuresValid (BOOL bValid) } } -void CNameSpace::GcDemote (int condemned, int max_gen, ScanContext* sc) +void GCScan::GcDemote (int condemned, int max_gen, ScanContext* sc) { Ref_RejuvenateHandles (condemned, max_gen, (uintptr_t)sc); if (!GCHeap::IsServerHeap() || sc->thread_number == 0) GCToEEInterface::SyncBlockCacheDemote(max_gen); } -void CNameSpace::GcPromotionsGranted (int condemned, int max_gen, ScanContext* sc) +void GCScan::GcPromotionsGranted (int condemned, int max_gen, ScanContext* sc) { Ref_AgeHandles(condemned, max_gen, (uintptr_t)sc); if (!GCHeap::IsServerHeap() || sc->thread_number == 0) @@ -296,7 +296,7 @@ void CNameSpace::GcPromotionsGranted (int condemned, int max_gen, ScanContext* s } -size_t CNameSpace::AskForMoreReservedMemory (size_t old_size, size_t need_size) +size_t GCScan::AskForMoreReservedMemory (size_t old_size, size_t need_size) { LIMITED_METHOD_CONTRACT; @@ -317,7 +317,7 @@ size_t CNameSpace::AskForMoreReservedMemory (size_t old_size, size_t need_size) return old_size + need_size; } -void CNameSpace::VerifyHandleTable(int condemned, int max_gen, ScanContext* sc) +void GCScan::VerifyHandleTable(int condemned, int max_gen, ScanContext* sc) { LIMITED_METHOD_CONTRACT; Ref_VerifyHandleTable(condemned, max_gen, sc); |