internal Object Copy(Object obj) { UIntPtr size = ObjectLayout.Sizeof(obj); if (GenerationalGCData.IsLargeObjectSize(size)) { return(CopyLarge(obj, size)); } else { return(CopySmall(obj, size)); } }
internal static bool IsLargeObjectSize(UIntPtr size) { return(GenerationalGCData.IsLargeObjectSize(size)); }