Lines Matching defs:commit
114 os_pages_map(void *addr, size_t size, size_t alignment, bool *commit) {
120 *commit = true;
129 ret = VirtualAlloc(addr, size, MEM_RESERVE | (*commit ? MEM_COMMIT : 0),
149 int prot = *commit ? PAGES_PROT_COMMIT : PAGES_PROT_DECOMMIT;
172 bool *commit) {
178 void *new_addr = os_pages_map(ret, size, PAGE, commit);
227 pages_map_slow(size_t size, size_t alignment, bool *commit) {
236 void *pages = os_pages_map(NULL, alloc_size, alignment, commit);
242 ret = os_pages_trim(pages, alloc_size, leadsize, size, commit);
251 pages_map(void *addr, size_t size, size_t alignment, bool *commit) {
262 *commit = true;
265 int prot = *commit ? PAGES_PROT_COMMIT : PAGES_PROT_DECOMMIT;
298 void *ret = os_pages_map(addr, size, os_page, commit);
305 return pages_map_slow(size, alignment, commit);
321 os_pages_commit(void *addr, size_t size, bool commit) {
326 return (commit ? (addr != VirtualAlloc(addr, size, MEM_COMMIT,
330 int prot = commit ? PAGES_PROT_COMMIT : PAGES_PROT_DECOMMIT;
350 pages_commit_impl(void *addr, size_t size, bool commit) {
355 return os_pages_commit(addr, size, commit);