Lines Matching refs:commit
56 os_pages_map(void *addr, size_t size, size_t alignment, bool *commit) {
62 *commit = true;
71 ret = VirtualAlloc(addr, size, MEM_RESERVE | (*commit ? MEM_COMMIT : 0),
79 int prot = *commit ? PAGES_PROT_COMMIT : PAGES_PROT_DECOMMIT;
102 bool *commit) {
108 void *new_addr = os_pages_map(ret, size, PAGE, commit);
157 pages_map_slow(size_t size, size_t alignment, bool *commit) {
166 void *pages = os_pages_map(NULL, alloc_size, alignment, commit);
172 ret = os_pages_trim(pages, alloc_size, leadsize, size, commit);
181 pages_map(void *addr, size_t size, size_t alignment, bool *commit) {
192 *commit = true;
195 int prot = *commit ? PAGES_PROT_COMMIT : PAGES_PROT_DECOMMIT;
228 void *ret = os_pages_map(addr, size, os_page, commit);
235 return pages_map_slow(size, alignment, commit);
251 pages_commit_impl(void *addr, size_t size, bool commit) {
260 return (commit ? (addr != VirtualAlloc(addr, size, MEM_COMMIT,
264 int prot = commit ? PAGES_PROT_COMMIT : PAGES_PROT_DECOMMIT;