Lines Matching refs:commit
54 os_pages_map(void *addr, size_t size, size_t alignment, bool *commit) {
60 *commit = true;
69 ret = VirtualAlloc(addr, size, MEM_RESERVE | (*commit ? MEM_COMMIT : 0),
77 int prot = *commit ? PAGES_PROT_COMMIT : PAGES_PROT_DECOMMIT;
100 bool *commit) {
106 void *new_addr = os_pages_map(ret, size, PAGE, commit);
155 pages_map_slow(size_t size, size_t alignment, bool *commit) {
164 void *pages = os_pages_map(NULL, alloc_size, alignment, commit);
170 ret = os_pages_trim(pages, alloc_size, leadsize, size, commit);
179 pages_map(void *addr, size_t size, size_t alignment, bool *commit) {
190 *commit = true;
193 int prot = *commit ? PAGES_PROT_COMMIT : PAGES_PROT_DECOMMIT;
226 void *ret = os_pages_map(addr, size, os_page, commit);
233 return pages_map_slow(size, alignment, commit);
249 pages_commit_impl(void *addr, size_t size, bool commit) {
258 return (commit ? (addr != VirtualAlloc(addr, size, MEM_COMMIT,
262 int prot = commit ? PAGES_PROT_COMMIT : PAGES_PROT_DECOMMIT;