16 references to MemoryHelpers
System.Private.TypeLoader (16)
Internal\Runtime\TypeLoader\EETypeCreator.cs (12)
246int cbGCDescAligned = MemoryHelpers.AlignUp(cbGCDesc, IntPtr.Size); 249eeTypePlusGCDesc = MemoryHelpers.AllocateMemory(cbGCDescAligned + cbEEType); 295writableData = MemoryHelpers.AllocateMemory(WritableData.GetSize(IntPtr.Size)); 316genericComposition = MemoryHelpers.AllocateMemory(MethodTable.GetGenericCompositionSize(arity)); 322nonGcStaticData = MemoryHelpers.AllocateMemory(allocatedNonGCDataSize); 333threadStaticIndex = MemoryHelpers.AllocateMemory(IntPtr.Size * 2); 363MemoryHelpers.FreeMemory((void*)state.HalfBakedDictionary); 365MemoryHelpers.FreeMemory(threadStaticIndex); 366MemoryHelpers.FreeMemory(nonGcStaticData); 367MemoryHelpers.FreeMemory(genericComposition); 368MemoryHelpers.FreeMemory(writableData); 369MemoryHelpers.FreeMemory(eeTypePlusGCDesc);
Internal\Runtime\TypeLoader\GenericDictionary.cs (2)
51_addressOfFirstCellSlot = MemoryHelpers.AllocateMemory(checked((int)(_cells.Length * IntPtr.Size))); 71void* dictionaryWithHeader = MemoryHelpers.AllocateMemory(checked((int)((_cells.Length + 1) * IntPtr.Size)));
Internal\Runtime\TypeLoader\TypeLoaderEnvironment.LdTokenResultLookup.cs (2)
127FieldHandleInfo* fieldData = (FieldHandleInfo*)MemoryHelpers.AllocateMemory(sizeof(FieldHandleInfo)); 171MethodHandleInfo* methodData = (MethodHandleInfo*)MemoryHelpers.AllocateMemory(sizeToAllocate);