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