12 references to AllocateMemory
System.Private.TypeLoader (12)
Internal\Runtime\TypeLoader\EETypeCreator.cs (5)
249
eeTypePlusGCDesc = MemoryHelpers.
AllocateMemory
(cbGCDescAligned + cbEEType);
295
writableData = MemoryHelpers.
AllocateMemory
(WritableData.GetSize(IntPtr.Size));
316
genericComposition = MemoryHelpers.
AllocateMemory
(MethodTable.GetGenericCompositionSize(arity));
322
nonGcStaticData = MemoryHelpers.
AllocateMemory
(allocatedNonGCDataSize);
333
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)
104
var dispatchCell = (DynamicDispatchCell.DynamicInterfaceDispatchCell*)MemoryHelpers.
AllocateMemory
(sizeof(DynamicDispatchCell.DynamicInterfaceDispatchCell));
129
var dispatchCell = (DynamicDispatchCell.DynamicGvmDispatchCell*)MemoryHelpers.
AllocateMemory
(sizeof(DynamicDispatchCell.DynamicGvmDispatchCell));
135
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);