Lines Matching full:base
138 size_t max_capacity, int locked, void *base) {
146 assert(((uintptr_t)base & (pagesize-1)) == 0);
152 if (mprotect(base, starting_capacity, PROT_READ | PROT_WRITE) < 0) {
158 m = create_mspace_with_base((char *)base + sizeof(*cs), starting_capacity,
163 /* Make sure that m is in the same page as base.
165 assert(((uintptr_t)m & (uintptr_t)~(pagesize-1)) == (uintptr_t)base);
168 cs = (struct mspace_contig_state *)base;
173 cs->brk = m->seg.base + m->seg.size;
174 cs->top = (char *)base + max_capacity;
176 assert((char *)base <= cs->brk);
185 if ((mprotect(base, prot_brk - (char *)base, PROT_READ | PROT_WRITE) < 0) ||
205 void *base;
230 base = mmap(NULL, max_capacity, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
232 if (base == MAP_FAILED)
235 /* Make sure that base is at the beginning of a page.
237 assert(((uintptr_t)base & (pagesize-1)) == 0);
240 locked, base);
242 munmap(base, max_capacity);