10
10
11
11
GCHandleStore* g_gcGlobalHandleStore;
12
12
13
- IGCHandleTable* CreateGCHandleTable ()
13
+ IGCHandleManager* CreateGCHandleManager ()
14
14
{
15
- return new (nothrow) GCHandleTable ();
15
+ return new (nothrow) GCHandleManager ();
16
16
}
17
17
18
18
void GCHandleStore::Uproot ()
@@ -57,22 +57,22 @@ GCHandleStore::~GCHandleStore()
57
57
Ref_DestroyHandleTableBucket (_underlyingBucket);
58
58
}
59
59
60
- bool GCHandleTable ::Initialize ()
60
+ bool GCHandleManager ::Initialize ()
61
61
{
62
62
return Ref_Initialize ();
63
63
}
64
64
65
- void GCHandleTable ::Shutdown ()
65
+ void GCHandleManager ::Shutdown ()
66
66
{
67
67
Ref_Shutdown ();
68
68
}
69
69
70
- IGCHandleStore* GCHandleTable ::GetGlobalHandleStore ()
70
+ IGCHandleStore* GCHandleManager ::GetGlobalHandleStore ()
71
71
{
72
72
return g_gcGlobalHandleStore;
73
73
}
74
74
75
- IGCHandleStore* GCHandleTable ::CreateHandleStore (void * context)
75
+ IGCHandleStore* GCHandleManager ::CreateHandleStore (void * context)
76
76
{
77
77
#ifndef FEATURE_REDHAWK
78
78
HandleTableBucket* newBucket = ::Ref_CreateHandleTableBucket (ADIndex ((DWORD)(uintptr_t )context));
@@ -83,37 +83,37 @@ IGCHandleStore* GCHandleTable::CreateHandleStore(void* context)
83
83
#endif
84
84
}
85
85
86
- void GCHandleTable ::DestroyHandleStore (IGCHandleStore* store)
86
+ void GCHandleManager ::DestroyHandleStore (IGCHandleStore* store)
87
87
{
88
88
delete store;
89
89
}
90
90
91
- void * GCHandleTable ::GetHandleContext (OBJECTHANDLE handle)
91
+ void * GCHandleManager ::GetHandleContext (OBJECTHANDLE handle)
92
92
{
93
93
return (void *)((uintptr_t )::HndGetHandleTableADIndex (::HndGetHandleTable (handle)).m_dwIndex );
94
94
}
95
95
96
- OBJECTHANDLE GCHandleTable ::CreateGlobalHandleOfType (Object* object, int type)
96
+ OBJECTHANDLE GCHandleManager ::CreateGlobalHandleOfType (Object* object, int type)
97
97
{
98
98
return ::HndCreateHandle (g_HandleTableMap.pBuckets [0 ]->pTable [GetCurrentThreadHomeHeapNumber ()], type, ObjectToOBJECTREF (object));
99
99
}
100
100
101
- OBJECTHANDLE GCHandleTable ::CreateDuplicateHandle (OBJECTHANDLE handle)
101
+ OBJECTHANDLE GCHandleManager ::CreateDuplicateHandle (OBJECTHANDLE handle)
102
102
{
103
103
return ::HndCreateHandle (HndGetHandleTable (handle), HNDTYPE_DEFAULT, ::HndFetchHandle (handle));
104
104
}
105
105
106
- void GCHandleTable ::DestroyHandleOfType (OBJECTHANDLE handle, int type)
106
+ void GCHandleManager ::DestroyHandleOfType (OBJECTHANDLE handle, int type)
107
107
{
108
108
::HndDestroyHandle (::HndGetHandleTable(handle), type, handle);
109
109
}
110
110
111
- void GCHandleTable ::DestroyHandleOfUnknownType (OBJECTHANDLE handle)
111
+ void GCHandleManager ::DestroyHandleOfUnknownType (OBJECTHANDLE handle)
112
112
{
113
113
::HndDestroyHandleOfUnknownType (::HndGetHandleTable(handle), handle);
114
114
}
115
115
116
- void * GCHandleTable ::GetExtraInfoFromHandle (OBJECTHANDLE handle)
116
+ void * GCHandleManager ::GetExtraInfoFromHandle (OBJECTHANDLE handle)
117
117
{
118
118
return (void *)::HndGetHandleExtraInfo (handle);
119
119
}
0 commit comments