Lines Matching defs:base
265 // 2. set the base pointer to be right after our header
272 void* base = dlmalloc(size);
273 if (base != NULL) {
279 AllocationEntry* header = reinterpret_cast<AllocationEntry*>(base);
283 // now increment base to point to after our header.
285 base = reinterpret_cast<AllocationEntry*>(base) + 1;
288 return base;
377 void* base = leak_malloc(size);
378 if (base != NULL) {
379 intptr_t ptr = reinterpret_cast<intptr_t>(base);
381 return base;
387 // there is always enough space for the base pointer and the guard
389 reinterpret_cast<void**>(ptr)[-2] = base;
393 return base;