Home | History | Annotate | Download | only in Support

Lines Matching defs:Allocate

21   int *a = (int*)Alloc.Allocate(sizeof(int), 0);
22 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 0);
23 int *c = (int*)Alloc.Allocate(sizeof(int), 0);
35 // Allocate enough bytes to create three slabs.
38 Alloc.Allocate(3000, 0);
40 Alloc.Allocate(3000, 0);
42 Alloc.Allocate(3000, 0);
46 // Allocate enough bytes to create two slabs, reset the allocator, and do it
50 Alloc.Allocate(3000, 0);
52 Alloc.Allocate(3000, 0);
56 Alloc.Allocate(3000, 0);
58 Alloc.Allocate(3000, 0);
66 a = (uintptr_t)Alloc.Allocate(1, 2);
68 a = (uintptr_t)Alloc.Allocate(1, 4);
70 a = (uintptr_t)Alloc.Allocate(1, 8);
72 a = (uintptr_t)Alloc.Allocate(1, 16);
74 a = (uintptr_t)Alloc.Allocate(1, 32);
76 a = (uintptr_t)Alloc.Allocate(1, 64);
78 a = (uintptr_t)Alloc.Allocate(1, 128);
88 Alloc.Allocate(4096 - sizeof(MemSlab), 0);
91 // If we don't allocate a new slab, then we will have overflowed.
92 Alloc.Allocate(1, 0);
104 virtual MemSlab *Allocate(size_t Size) {
105 // Allocate space for the alignment, the slab, and a void* that goes right
132 // Allocate a large-ish block with a really large alignment so that the
138 uintptr_t Ptr = (uintptr_t)Alloc.Allocate(3000, 2048);