Lines Matching refs:extra
121 // could theoretically return the "extra" bytes here, but this
137 size_t extra = alignment - (ptr & (alignment-1));
138 void* r2 = sbrk(extra);
141 return reinterpret_cast<void*>(ptr + extra);
168 // could theoretically return the "extra" bytes here, but this
173 // Ask for extra memory if alignment > pagesize
174 size_t extra = 0;
176 extra = alignment - pagesize;
178 void* result = mmap(NULL, size + extra,
198 if (adjust < extra) {
199 munmap(reinterpret_cast<void*>(ptr + adjust + size), extra - adjust);
221 // could theoretically return the "extra" bytes here, but this
226 // Ask for extra memory if alignment > pagesize
227 size_t extra = 0;
229 extra = alignment - pagesize;
231 void* result = VirtualAlloc(NULL, size + extra,
252 if (adjust < extra) {
253 VirtualFree(reinterpret_cast<void*>(ptr + adjust + size), extra-adjust, MEM_DECOMMIT);
295 // could theoretically return the "extra" bytes here, but this
300 // Ask for extra memory if alignment > pagesize
301 size_t extra = 0;
303 extra = alignment - pagesize;
307 if (physmem_limit != 0 && physmem_base + size + extra > physmem_limit) {
311 void *result = mmap(0, size + extra, PROT_READ | PROT_WRITE,
329 if (adjust < extra) {
330 munmap(reinterpret_cast<void*>(ptr + adjust + size), extra - adjust);