public static IntPtr AllocateThunk(object thunksHeap) { IntPtr newThunk = RuntimeImports.RhAllocateThunk(thunksHeap); if (newThunk == IntPtr.Zero) { throw new OutOfMemoryException(); } TypeLoaderCallbacks.RegisterThunk(newThunk); return(newThunk); }
public static void InitializeLookups(TypeLoaderCallbacks callbacks) { s_typeLoaderCallbacks = callbacks; }