Lines Matching full:blocksize
389 PageReleaseContext(uptr BlockSize, uptr NumberOfRegions, uptr ReleaseSize,
391 : BlockSize(BlockSize), NumberOfRegions(NumberOfRegions) { in BlockSize() function
393 if (BlockSize <= PageSize) { in BlockSize()
394 if (PageSize % BlockSize == 0) { in BlockSize()
396 FullPagesBlockCountMax = PageSize / BlockSize; in BlockSize()
398 } else if (BlockSize % (PageSize % BlockSize) == 0) { in BlockSize()
402 FullPagesBlockCountMax = PageSize / BlockSize + 1; in BlockSize()
407 FullPagesBlockCountMax = PageSize / BlockSize + 2; in BlockSize()
411 if (BlockSize % PageSize == 0) { in BlockSize()
464 uptr FirstBlockInRange = roundUpSlow(FromInRegion, BlockSize); in markRangeAsAllCounted()
491 (FromInRegion + PageSize - FirstBlockInRange + BlockSize - 1) / in markRangeAsAllCounted()
492 BlockSize; in markRangeAsAllCounted()
498 uptr LastBlockInRange = roundDownSlow(ToInRegion - 1, BlockSize); in markRangeAsAllCounted()
507 if (LastBlockInRange + BlockSize != RegionSize) { in markRangeAsAllCounted()
521 if (LastBlockInRange + BlockSize != ToInRegion) { in markRangeAsAllCounted()
523 getPageIndex(LastBlockInRange + BlockSize - 1)); in markRangeAsAllCounted()
549 ((RegionSize / BlockSize) - 1U) * BlockSize; in markFreeBlocksInRegion()
562 const uptr TrailingBlockBase = LastBlockInRegion + BlockSize; in markFreeBlocksInRegion()
573 (roundUpSlow(RoundedRegionSize - TrailingBlockBase, BlockSize) + in markFreeBlocksInRegion()
574 BlockSize - 1) / in markFreeBlocksInRegion()
575 BlockSize; in markFreeBlocksInRegion()
584 if (BlockSize <= PageSize && PageSize % BlockSize == 0) { in markFreeBlocksInRegion()
595 DCHECK_GE(RegionSize, BlockSize); in markFreeBlocksInRegion()
600 getPageIndex(PInRegion + BlockSize - 1)); in markFreeBlocksInRegion()
611 uptr BlockSize; member
632 const uptr BlockSize = Context.BlockSize; in releaseFreeMemoryToOS() local
659 const uptr Pn = BlockSize < PageSize ? PageSize / BlockSize : 1; in releaseFreeMemoryToOS()
660 const uptr Pnc = Pn * BlockSize; in releaseFreeMemoryToOS()
675 CurrentBoundary = roundUpSlow(PrevPageBoundary, BlockSize); in releaseFreeMemoryToOS()
686 CurrentBoundary += BlockSize; in releaseFreeMemoryToOS()