Home
last modified time | relevance | path

Searched refs:MapSize (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DMemoryBuffer.cpp122 getFileAux(const Twine &Filename, uint64_t MapSize, uint64_t Offset,
174 MemoryBuffer::getFileSlice(const Twine &FilePath, uint64_t MapSize, in getFileSlice() argument
177 return getFileAux<MemoryBuffer>(FilePath, MapSize, Offset, /*IsText=*/false, in getFileSlice()
269 uint64_t MapSize, int64_t Offset, bool RequiresNullTerminator,
274 getFileAux(const Twine &Filename, uint64_t MapSize, uint64_t Offset, in getFileAux() argument
282 auto Ret = getOpenFileImpl<MB>(FD, Filename, /*FileSize=*/-1, MapSize, Offset, in getFileAux()
297 WritableMemoryBuffer::getFileSlice(const Twine &Filename, uint64_t MapSize, in getFileSlice() argument
301 Filename, MapSize, Offset, /*IsText=*/false, in getFileSlice()
357 size_t MapSize, in shouldUseMmap() argument
375 if (MapSize < 4 * 4096 || MapSize < (unsigned)PageSize) in shouldUseMmap()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DMemoryBuffer.h113 getOpenFileSlice(sys::fs::file_t FD, const Twine &Filename, uint64_t MapSize,
157 getFileSlice(const Twine &Filename, uint64_t MapSize, uint64_t Offset,
209 getFileSlice(const Twine &Filename, uint64_t MapSize, uint64_t Offset,
272 getFileSlice(const Twine &Filename, uint64_t MapSize, uint64_t Offset);
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dprimary32.h553 uptr MapSize = 2 * RegionSize; in allocateRegionSlow() local
555 map(nullptr, MapSize, "scudo:primary", MAP_ALLOWNOMEM)); in allocateRegionSlow()
558 const uptr MapEnd = MapBase + MapSize; in allocateRegionSlow()
565 MapSize = RegionSize; in allocateRegionSlow()
569 MapSize = RegionSize; in allocateRegionSlow()
571 const uptr End = Region + MapSize; in allocateRegionSlow()
H A Dsecondary.h790 const uptr MapSize = RoundedSize + 2 * getGuardPageSize(); in allocate() local
791 if (UNLIKELY(!ReservedMemory.create(/*Addr=*/0U, MapSize, nullptr, in allocate()
801 uptr MapEnd = MapBase + MapSize; in allocate()
H A Dprimary64.h706 const uptr MapSize = roundUp(TotalUserBytes - MappedUser, MapSizeIncrement); in populateFreeListAndPopBlocks() local
708 if (UNLIKELY(RegionBase + MappedUser + MapSize > RegionSize)) { in populateFreeListAndPopBlocks()
714 RegionBeg + MappedUser, MapSize, "scudo:primary", in populateFreeListAndPopBlocks()
719 Region->MemMapInfo.MappedUser += MapSize; in populateFreeListAndPopBlocks()
720 SizeClassAllocator->getStats().add(StatMapped, MapSize); in populateFreeListAndPopBlocks()