summaryrefslogtreecommitdiff
path: root/src/gc
diff options
context:
space:
mode:
authorAditya Mandaleeka <adityam@microsoft.com>2017-04-13 19:19:58 -0700
committerAditya Mandaleeka <adityam@microsoft.com>2017-04-13 20:53:26 -0700
commitc9914b7ab9dfcc7ad8003368715a182d7cbbe289 (patch)
tree17fa2d9284afd2e716410698ca4d5c17d15d5534 /src/gc
parentda00894a5d657b3ba06ebf6e004e5a5a0976434b (diff)
downloadcoreclr-c9914b7ab9dfcc7ad8003368715a182d7cbbe289.tar.gz
coreclr-c9914b7ab9dfcc7ad8003368715a182d7cbbe289.tar.bz2
coreclr-c9914b7ab9dfcc7ad8003368715a182d7cbbe289.zip
Rename IGCHandleTable to IGCHandleManager.
Diffstat (limited to 'src/gc')
-rw-r--r--src/gc/gc.h6
-rw-r--r--src/gc/gccommon.cpp12
-rw-r--r--src/gc/gchandletable.cpp26
-rw-r--r--src/gc/gchandletableimpl.h2
-rw-r--r--src/gc/gcinterface.h6
-rw-r--r--src/gc/sample/GCSample.cpp8
6 files changed, 30 insertions, 30 deletions
diff --git a/src/gc/gc.h b/src/gc/gc.h
index a661c311ab..07ae6c916c 100644
--- a/src/gc/gc.h
+++ b/src/gc/gc.h
@@ -115,7 +115,7 @@ extern "C" GCHeapType g_gc_heap_type;
extern "C" uint32_t g_max_generation;
extern "C" MethodTable* g_gc_pFreeObjectMethodTable;
-::IGCHandleTable* CreateGCHandleTable();
+::IGCHandleManager* CreateGCHandleManager();
namespace WKS {
::IGCHeapInternal* CreateGCHeap();
@@ -260,8 +260,8 @@ void updateGCShadow(Object** ptr, Object* val);
// The single GC heap instance, shared with the VM.
extern IGCHeapInternal* g_theGCHeap;
-// The single GC handle table instance, shared with the VM.
-extern IGCHandleTable* g_theGCHandleTable;
+// The single GC handle manager instance, shared with the VM.
+extern IGCHandleManager* g_theGCHandleManager;
#ifndef DACCESS_COMPILE
inline bool IsGCInProgress(bool bConsiderGCStart = false)
diff --git a/src/gc/gccommon.cpp b/src/gc/gccommon.cpp
index f931597667..4950809cda 100644
--- a/src/gc/gccommon.cpp
+++ b/src/gc/gccommon.cpp
@@ -15,7 +15,7 @@
#include "gc.h"
IGCHeapInternal* g_theGCHeap;
-IGCHandleTable* g_theGCHandleTable;
+IGCHandleManager* g_theGCHandleManager;
#ifdef FEATURE_STANDALONE_GC
IGCToCLR* g_theGCToCLR;
@@ -143,7 +143,7 @@ namespace SVR
extern void PopulateDacVars(GcDacVars* dacVars);
}
-bool InitializeGarbageCollector(IGCToCLR* clrToGC, IGCHeap** gcHeap, IGCHandleTable** gcHandleTable, GcDacVars* gcDacVars)
+bool InitializeGarbageCollector(IGCToCLR* clrToGC, IGCHeap** gcHeap, IGCHandleManager** gcHandleManager, GcDacVars* gcDacVars)
{
LIMITED_METHOD_CONTRACT;
@@ -151,10 +151,10 @@ bool InitializeGarbageCollector(IGCToCLR* clrToGC, IGCHeap** gcHeap, IGCHandleTa
assert(gcDacVars != nullptr);
assert(gcHeap != nullptr);
- assert(gcHandleTable != nullptr);
+ assert(gcHandleManager != nullptr);
- IGCHandleTable* handleTable = CreateGCHandleTable();
- if (handleTable == nullptr)
+ IGCHandleManager* handleManager = CreateGCHandleManager();
+ if (handleManager == nullptr)
{
return false;
}
@@ -192,7 +192,7 @@ bool InitializeGarbageCollector(IGCToCLR* clrToGC, IGCHeap** gcHeap, IGCHandleTa
assert(clrToGC == nullptr);
#endif
- *gcHandleTable = handleTable;
+ *gcHandleManager = handleManager;
*gcHeap = heap;
return true;
}
diff --git a/src/gc/gchandletable.cpp b/src/gc/gchandletable.cpp
index 5a637d461c..6c9e098de7 100644
--- a/src/gc/gchandletable.cpp
+++ b/src/gc/gchandletable.cpp
@@ -10,9 +10,9 @@
GCHandleStore* g_gcGlobalHandleStore;
-IGCHandleTable* CreateGCHandleTable()
+IGCHandleManager* CreateGCHandleManager()
{
- return new (nothrow) GCHandleTable();
+ return new (nothrow) GCHandleManager();
}
void GCHandleStore::Uproot()
@@ -57,22 +57,22 @@ GCHandleStore::~GCHandleStore()
Ref_DestroyHandleTableBucket(_underlyingBucket);
}
-bool GCHandleTable::Initialize()
+bool GCHandleManager::Initialize()
{
return Ref_Initialize();
}
-void GCHandleTable::Shutdown()
+void GCHandleManager::Shutdown()
{
Ref_Shutdown();
}
-IGCHandleStore* GCHandleTable::GetGlobalHandleStore()
+IGCHandleStore* GCHandleManager::GetGlobalHandleStore()
{
return g_gcGlobalHandleStore;
}
-IGCHandleStore* GCHandleTable::CreateHandleStore(void* context)
+IGCHandleStore* GCHandleManager::CreateHandleStore(void* context)
{
#ifndef FEATURE_REDHAWK
HandleTableBucket* newBucket = ::Ref_CreateHandleTableBucket(ADIndex((DWORD)(uintptr_t)context));
@@ -83,37 +83,37 @@ IGCHandleStore* GCHandleTable::CreateHandleStore(void* context)
#endif
}
-void GCHandleTable::DestroyHandleStore(IGCHandleStore* store)
+void GCHandleManager::DestroyHandleStore(IGCHandleStore* store)
{
delete store;
}
-void* GCHandleTable::GetHandleContext(OBJECTHANDLE handle)
+void* GCHandleManager::GetHandleContext(OBJECTHANDLE handle)
{
return (void*)((uintptr_t)::HndGetHandleTableADIndex(::HndGetHandleTable(handle)).m_dwIndex);
}
-OBJECTHANDLE GCHandleTable::CreateGlobalHandleOfType(Object* object, int type)
+OBJECTHANDLE GCHandleManager::CreateGlobalHandleOfType(Object* object, int type)
{
return ::HndCreateHandle(g_HandleTableMap.pBuckets[0]->pTable[GetCurrentThreadHomeHeapNumber()], type, ObjectToOBJECTREF(object));
}
-OBJECTHANDLE GCHandleTable::CreateDuplicateHandle(OBJECTHANDLE handle)
+OBJECTHANDLE GCHandleManager::CreateDuplicateHandle(OBJECTHANDLE handle)
{
return ::HndCreateHandle(HndGetHandleTable(handle), HNDTYPE_DEFAULT, ::HndFetchHandle(handle));
}
-void GCHandleTable::DestroyHandleOfType(OBJECTHANDLE handle, int type)
+void GCHandleManager::DestroyHandleOfType(OBJECTHANDLE handle, int type)
{
::HndDestroyHandle(::HndGetHandleTable(handle), type, handle);
}
-void GCHandleTable::DestroyHandleOfUnknownType(OBJECTHANDLE handle)
+void GCHandleManager::DestroyHandleOfUnknownType(OBJECTHANDLE handle)
{
::HndDestroyHandleOfUnknownType(::HndGetHandleTable(handle), handle);
}
-void* GCHandleTable::GetExtraInfoFromHandle(OBJECTHANDLE handle)
+void* GCHandleManager::GetExtraInfoFromHandle(OBJECTHANDLE handle)
{
return (void*)::HndGetHandleExtraInfo(handle);
}
diff --git a/src/gc/gchandletableimpl.h b/src/gc/gchandletableimpl.h
index 1635c6eb79..bd9d921e10 100644
--- a/src/gc/gchandletableimpl.h
+++ b/src/gc/gchandletableimpl.h
@@ -35,7 +35,7 @@ private:
extern GCHandleStore* g_gcGlobalHandleStore;
-class GCHandleTable : public IGCHandleTable
+class GCHandleManager : public IGCHandleManager
{
public:
virtual bool Initialize();
diff --git a/src/gc/gcinterface.h b/src/gc/gcinterface.h
index e4311fa965..28dc801309 100644
--- a/src/gc/gcinterface.h
+++ b/src/gc/gcinterface.h
@@ -169,12 +169,12 @@ struct segment_info
class Object;
class IGCHeap;
-class IGCHandleTable;
+class IGCHandleManager;
// Initializes the garbage collector. Should only be called
// once, during EE startup. Returns true if the initialization
// was successful, false otherwise.
-bool InitializeGarbageCollector(IGCToCLR* clrToGC, IGCHeap** gcHeap, IGCHandleTable** gcHandleTable, GcDacVars* gcDacVars);
+bool InitializeGarbageCollector(IGCToCLR* clrToGC, IGCHeap** gcHeap, IGCHandleManager** gcHandleTable, GcDacVars* gcDacVars);
// The runtime needs to know whether we're using workstation or server GC
// long before the GCHeap is created. This function sets the type of
@@ -420,7 +420,7 @@ public:
virtual ~IGCHandleStore() {};
};
-class IGCHandleTable {
+class IGCHandleManager {
public:
virtual bool Initialize() = 0;
diff --git a/src/gc/sample/GCSample.cpp b/src/gc/sample/GCSample.cpp
index 2914ee1665..0a771b7e91 100644
--- a/src/gc/sample/GCSample.cpp
+++ b/src/gc/sample/GCSample.cpp
@@ -130,8 +130,8 @@ int __cdecl main(int argc, char* argv[])
//
GcDacVars dacVars;
IGCHeap *pGCHeap;
- IGCHandleTable *pGCHandleTable;
- if (!InitializeGarbageCollector(nullptr, &pGCHeap, &pGCHandleTable, &dacVars))
+ IGCHandleManager *pGCHandleManager;
+ if (!InitializeGarbageCollector(nullptr, &pGCHeap, &pGCHandleManager, &dacVars))
{
return -1;
}
@@ -140,9 +140,9 @@ int __cdecl main(int argc, char* argv[])
return -1;
//
- // Initialize handle table
+ // Initialize handle manager
//
- if (!pGCHandleTable->Initialize())
+ if (!pGCHandleManager->Initialize())
return -1;
//