12 references to AllocateMemory
System.Private.TypeLoader (12)
Internal\Runtime\TypeLoader\EETypeCreator.cs (5)
222
eeTypePlusGCDesc = MemoryHelpers.
AllocateMemory
(cbGCDescAligned + cbEEType);
273
writableData = MemoryHelpers.
AllocateMemory
(WritableData.GetSize(IntPtr.Size));
286
genericComposition = MemoryHelpers.
AllocateMemory
(MethodTable.GetGenericCompositionSize(arity));
292
nonGcStaticData = MemoryHelpers.
AllocateMemory
(allocatedNonGCDataSize);
303
threadStaticIndex = MemoryHelpers.
AllocateMemory
(IntPtr.Size * 2);
Internal\Runtime\TypeLoader\GenericDictionary.cs (2)
51
_addressOfFirstCellSlot = MemoryHelpers.
AllocateMemory
(checked((int)(_cells.Length * IntPtr.Size)));
71
void* dictionaryWithHeader = MemoryHelpers.
AllocateMemory
(checked((int)((_cells.Length + 1) * IntPtr.Size)));
Internal\Runtime\TypeLoader\GenericDictionaryCell.cs (3)
99
var dispatchCell = (DynamicDispatchCell.DynamicInterfaceDispatchCell*)MemoryHelpers.
AllocateMemory
(sizeof(DynamicDispatchCell.DynamicInterfaceDispatchCell));
124
var dispatchCell = (DynamicDispatchCell.DynamicGvmDispatchCell*)MemoryHelpers.
AllocateMemory
(sizeof(DynamicDispatchCell.DynamicGvmDispatchCell));
130
MethodTable** instantiation = (MethodTable**)MemoryHelpers.
AllocateMemory
(sizeof(MethodTable*) * Method.Instantiation.Length);
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.LdTokenResultLookup.cs (2)
128
FieldHandleInfo* fieldData = (FieldHandleInfo*)MemoryHelpers.
AllocateMemory
(sizeof(FieldHandleInfo));
172
MethodHandleInfo* methodData = (MethodHandleInfo*)MemoryHelpers.
AllocateMemory
(sizeToAllocate);