Home | History | Annotate | Download | only in Support

Lines Matching refs:Allocate

20   int *a = (int*)Alloc.Allocate(sizeof(int), 0);
21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 0);
22 int *c = (int*)Alloc.Allocate(sizeof(int), 0);
34 // Allocate enough bytes to create three slabs.
37 Alloc.Allocate(3000, 0);
39 Alloc.Allocate(3000, 0);
41 Alloc.Allocate(3000, 0);
45 // Allocate enough bytes to create two slabs, reset the allocator, and do it
49 Alloc.Allocate(3000, 0);
51 Alloc.Allocate(3000, 0);
55 Alloc.Allocate(3000, 0);
57 Alloc.Allocate(3000, 0);
65 a = (uintptr_t)Alloc.Allocate(1, 2);
67 a = (uintptr_t)Alloc.Allocate(1, 4);
69 a = (uintptr_t)Alloc.Allocate(1, 8);
71 a = (uintptr_t)Alloc.Allocate(1, 16);
73 a = (uintptr_t)Alloc.Allocate(1, 32);
75 a = (uintptr_t)Alloc.Allocate(1, 64);
77 a = (uintptr_t)Alloc.Allocate(1, 128);
87 Alloc.Allocate(4096 - sizeof(MemSlab), 0);
90 // If we don't allocate a new slab, then we will have overflowed.
91 Alloc.Allocate(1, 0);
99 Alloc.Allocate(200, 0);
111 virtual MemSlab *Allocate(size_t Size) {
112 // Allocate space for the alignment, the slab, and a void* that goes right
139 // Allocate a large-ish block with a really large alignment so that the
145 uintptr_t Ptr = (uintptr_t)Alloc.Allocate(3000, 2048);