Lines Matching refs:extra
109 // could theoretically return the "extra" bytes here, but this
125 size_t extra = alignment - (ptr & (alignment-1));
126 void* r2 = sbrk(extra);
129 return reinterpret_cast<void*>(ptr + extra);
156 // could theoretically return the "extra" bytes here, but this
161 // Ask for extra memory if alignment > pagesize
162 size_t extra = 0;
164 extra = alignment - pagesize;
166 Checked<size_t> mapSize = Checked<size_t>(size) + extra + 2 * pagesize;
189 if (adjust < extra) {
190 munmap(reinterpret_cast<void*>(ptr + adjust + size), extra - adjust);
212 // could theoretically return the "extra" bytes here, but this
217 // Ask for extra memory if alignment > pagesize
218 size_t extra = 0;
220 extra = alignment - pagesize;
222 void* result = VirtualAlloc(NULL, size + extra,
243 if (adjust < extra) {
244 VirtualFree(reinterpret_cast<void*>(ptr + adjust + size), extra-adjust, MEM_DECOMMIT);
286 // could theoretically return the "extra" bytes here, but this
291 // Ask for extra memory if alignment > pagesize
292 size_t extra = 0;
294 extra = alignment - pagesize;
298 if (physmem_limit != 0 && physmem_base + size + extra > physmem_limit) {
302 void *result = mmap(0, size + extra, PROT_READ | PROT_WRITE,
320 if (adjust < extra) {
321 munmap(reinterpret_cast<void*>(ptr + adjust + size), extra - adjust);