示例#1
0
        internal static UIntPtr AllocateFast(Thread thread,
                                             UIntPtr bytes, uint alignment)
        {
            BumpAllocatorThread mixinThread = MixinThread(thread);

            return(mixinThread.bumpAllocator.AllocateFast(bytes, alignment));
        }
示例#2
0
        public static UIntPtr AllocateSlow(Thread currentThread,
                                           UIntPtr bytes, uint alignment)
        {
            BumpAllocatorThread mixinThread = MixinThread(currentThread);

            return(mixinThread.bumpAllocator.AllocateSlow(bytes, alignment,
                                                          currentThread));
        }
示例#3
0
        public static UIntPtr Allocate(Thread thread,
                                       UIntPtr bytes, uint alignment)
        {
            BumpAllocatorThread mixinThread = MixinThread(thread);

            return(mixinThread.bumpAllocator.Allocate(bytes, alignment,
                                                      thread));
        }