Home | History | Annotate | Download | only in Support

Lines Matching full:slab

82 // Test allocating just over the slab size.  This tests a bug where before the
87 // Fill the slab right up until the end pointer.
91 // If we don't allocate a new slab, then we will have overflowed.
96 // Test allocating with a size larger than the initial slab size.
104 // Mock slab allocator that returns slabs aligned on 4096 bytes. There is no
113 // Allocate space for the alignment, the slab, and a void* that goes right
114 // before the slab.
118 // Make the slab.
119 MemSlab *Slab = (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) &
121 Slab->Size = Size;
122 Slab->NextPtr = 0;
125 ((void**)Slab)[-1] = MemBase;
127 LastSlab = Slab;
128 return Slab;
131 virtual void Deallocate(MemSlab *Slab) {
132 free(((void**)Slab)[-1]);
147 MemSlab *Slab = SlabAlloc.GetLastSlab();
148 EXPECT_LE(Ptr + 3000, ((uintptr_t)Slab) + Slab->Size);