Esempio n. 1
0
        internal Object Copy(Object obj)
        {
            UIntPtr size = ObjectLayout.Sizeof(obj);

            if (GenerationalGCData.IsLargeObjectSize(size))
            {
                return(CopyLarge(obj, size));
            }
            else
            {
                return(CopySmall(obj, size));
            }
        }
Esempio n. 2
0
 internal static bool IsLargeObjectSize(UIntPtr size)
 {
     return(GenerationalGCData.IsLargeObjectSize(size));
 }