Lines Matching refs:result
62 void* result = mmap_impl(bytes, hint); in mmapTHP() local
65 if (result == MAP_FAILED) { in mmapTHP()
72 if (!isAligned(result, HUGE_PAGE_SIZE)) { in mmapTHP()
74 munmap(result, bytes); in mmapTHP()
77 result = mmap_impl(bytes + HUGE_PAGE_SIZE); in mmapTHP()
80 if (result == MAP_FAILED) { in mmapTHP()
88 if (!isAligned(result, HUGE_PAGE_SIZE)) { in mmapTHP()
90 offset = HUGE_PAGE_SIZE - ((uintptr_t)result & (HUGE_PAGE_SIZE - 1)); in mmapTHP()
91 munmap(result, offset); in mmapTHP()
94 result = (void*)((uintptr_t)result + offset); in mmapTHP()
98 munmap((void*)((uintptr_t)result + bytes), HUGE_PAGE_SIZE - offset); in mmapTHP()
106 hint = result; in mmapTHP()
108 …MALLOC_ASSERT(isAligned(result, HUGE_PAGE_SIZE), "Mapped address is not aligned on huge page size.… in mmapTHP()
110 return result; in mmapTHP()
116 void* result = nullptr; in MapMemory() local
122 result = mmap_impl(bytes); in MapMemory()
128 result = mmap_impl(bytes, nullptr, __TBB_MAP_HUGETLB); in MapMemory()
134 result = mmapTHP(bytes); in MapMemory()
143 if (result == MAP_FAILED) { in MapMemory()
148 return result; in MapMemory()
172 BOOL result = VirtualFree(area, 0, MEM_RELEASE); in UnmapMemory() local
173 return !result; in UnmapMemory()