Lines Matching defs:mapped_addr
188 uptr mapped_addr =
190 if (!mapped_addr)
195 if (IsAligned(mapped_addr, alignment))
196 return (void*)mapped_addr;
197 if (VirtualFree((void *)mapped_addr, 0, MEM_RELEASE) == 0)
205 (mapped_addr == 0 || !IsAligned(mapped_addr, alignment));
208 mapped_addr =
210 if (!mapped_addr)
214 uptr aligned_addr = RoundUpTo(mapped_addr, alignment);
217 if (VirtualFree((void *)mapped_addr, 0, MEM_RELEASE) == 0)
223 mapped_addr = (uptr)VirtualAlloc((void *)aligned_addr, size,
228 if (retries == kMaxRetries && mapped_addr == 0)
231 return (void *)mapped_addr;