Lines Matching refs:mapped_addr
124 uptr mapped_addr = in MmapAlignedOrDie() local
126 if (!mapped_addr) in MmapAlignedOrDie()
131 if (IsAligned(mapped_addr, alignment)) in MmapAlignedOrDie()
132 return (void*)mapped_addr; in MmapAlignedOrDie()
133 if (VirtualFree((void *)mapped_addr, 0, MEM_RELEASE) == 0) in MmapAlignedOrDie()
141 (mapped_addr == 0 || !IsAligned(mapped_addr, alignment)); in MmapAlignedOrDie()
144 mapped_addr = in MmapAlignedOrDie()
146 if (!mapped_addr) in MmapAlignedOrDie()
151 uptr aligned_addr = RoundUpTo(mapped_addr, alignment); in MmapAlignedOrDie()
154 if (VirtualFree((void *)mapped_addr, 0, MEM_RELEASE) == 0) in MmapAlignedOrDie()
160 mapped_addr = (uptr)VirtualAlloc((void *)aligned_addr, size, in MmapAlignedOrDie()
165 if (retries == kMaxRetries && mapped_addr == 0) in MmapAlignedOrDie()
168 return (void *)mapped_addr; in MmapAlignedOrDie()