Lines Matching defs:BlockSize
180 const uptr BlockSize = getSizeByClassId(I);
189 DCHECK_EQ(TotalBlocks, Region->MemMapInfo.AllocatedUser / BlockSize);
197 const uptr BlockSize = getSizeByClassId(SizeClassMap::BatchClassId);
210 Region->MemMapInfo.AllocatedUser / BlockSize);
347 const uptr BlockSize = getSizeByClassId(I);
350 for (uptr Block = From; Block < To; Block += BlockSize)
509 B.BlockSize = SizeClassMap::getSizeByClassId(ClassId);
511 B.RegionBegin + uptr(sptr(Ptr - B.RegionBegin) / sptr(B.BlockSize) *
512 sptr(B.BlockSize));
514 B.BlockBegin += B.BlockSize;
515 while (B.RegionEnd < B.BlockBegin + B.BlockSize)
516 B.BlockBegin -= B.BlockSize;
611 ALWAYS_INLINE static bool isSmallBlock(uptr BlockSize) {
613 return BlockSize < PageSize / 16U;
616 ALWAYS_INLINE uptr getMinReleaseAttemptSize(uptr BlockSize) {
617 return roundUp(BlockSize, getPageSizeCached());
636 const uptr BlockSize = getSizeByClassId(ClassId);
639 if (isSmallBlock(BlockSize)) {
644 getMinReleaseAttemptSize(BlockSize);
1132 const uptr BlockSize = getSizeByClassId(ClassId);
1136 Region->MemMapInfo.AllocatedUser - InUseBlocks * BlockSize;
1143 const uptr TotalChunks = Region->MemMapInfo.AllocatedUser / BlockSize;
1160 const uptr BlockSize = getSizeByClassId(ClassId);
1174 markFreeBlocks(Region, BlockSize, AllocatedUserEnd,
1184 const uptr TotalBlocks = Region->MemMapInfo.AllocatedUser / BlockSize;
1196 computePercentage(BlockSize * InUseBlocks, InUseBytes, &Integral,
1200 ClassId, BlockSize, InUseBlocks, TotalBlocks, InUsePages,
1207 const uptr BlockSize = getSizeByClassId(ClassId);
1224 markFreeBlocks(Region, BlockSize, AllocatedUserEnd,
1233 BlockSize);
1251 const uptr BlockSize = getSizeByClassId(ClassId);
1264 BlockSize;
1273 !hasChanceToReleasePages(Region, BlockSize, BytesInFreeList,
1293 collectGroupsToRelease(Region, BlockSize, AllocatedUserEnd,
1315 markFreeBlocks(Region, BlockSize, AllocatedUserEnd,
1338 if (!isSmallBlock(BlockSize)) {
1342 getMinReleaseAttemptSize(BlockSize)) {
1345 getMinReleaseAttemptSize(BlockSize));
1377 bool hasChanceToReleasePages(RegionInfo *Region, uptr BlockSize,
1438 if (!isSmallBlock(BlockSize))
1450 collectGroupsToRelease(RegionInfo *Region, const uptr BlockSize,
1489 const uptr BytesInBG = NumBlocks * BlockSize;
1499 if (PushedBytesDelta < getMinReleaseAttemptSize(BlockSize)) {
1509 if (isSmallBlock(BlockSize)) {
1515 (AllocatedGroupSize * (100 - 1U - BlockSize / 16U)) / 100U;
1517 const bool MayHaveReleasedAll = NumBlocks >= (GroupSize / BlockSize);
1608 if (isSmallBlock(BlockSize)) {
1621 markFreeBlocks(RegionInfo *Region, const uptr BlockSize,
1637 // The last block may straddle the group boundary. Rounding up to BlockSize
1640 roundUpSlow(LastGroupEnd - Region->RegionBeg, BlockSize) +
1645 PageReleaseContext Context(BlockSize, /*NumberOfRegions=*/1U,
1663 (BatchGroupUsedEnd - Region->RegionBeg) % BlockSize == 0;
1665 uptr MaxContainedBlocks = AllocatedGroupSize / BlockSize;