summaryrefslogtreecommitdiff
path: root/src/gc/gchandletable.cpp
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/gchandletable.cpp
parentda00894a5d657b3ba06ebf6e004e5a5a0976434b (diff)
downloadcoreclr-c9914b7ab9dfcc7ad8003368715a182d7cbbe289.tar.gz
coreclr-c9914b7ab9dfcc7ad8003368715a182d7cbbe289.tar.bz2
coreclr-c9914b7ab9dfcc7ad8003368715a182d7cbbe289.zip
Rename IGCHandleTable to IGCHandleManager.
Diffstat (limited to 'src/gc/gchandletable.cpp')
-rw-r--r--src/gc/gchandletable.cpp26
1 files changed, 13 insertions, 13 deletions
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);
}