net.minecraft.client.render

public class AllocationManager

com.mojang.blaze3d.vertex.TlsfAllocator
net.minecraft.class_1_291
net.minecraft.client.render.AllocationManager

Field summary

Modifier and TypeField
private static final int
SECOND_LEVEL_BIN_LOG2
field_1_1744
SECOND_LEVEL_INDEX_BITS
private static final int
SECOND_LEVEL_BIN_COUNT
field_1_1743
field_1_1743
private static final int
FIRST_LEVEL_INDEX_SHIFT
field_1_1740
SECOND_LEVEL_INDEX_COUNT
private static final int
FIRST_LEVEL_BIN_COUNT
field_1_1739
FIRST_LEVEL_INDEX_COUNT
private static final int
SMALL_BLOCK_SIZE
field_1_1745
FIRST_LEVEL_INITIAL_SIZE_THRESHOLD
private static final long
MAX_ALLOCATION_SIZE
field_1_1742
MAX_ALLOCATION_SIZE
private static final int
ALIGN_SIZE
field_1_1738
ALLOCATION_ALIGNMENT
private int
firstLevelBitmap
field_1_1746
firstLevelAvailability
private final int[]
secondLevelBitmap
field_1_1748
secondLevelAvailabilities
private final AllocationManager$Block[]
freeLists
field_1_1747
freeHeadsByIndices
private final long
totalMemorySize
field_1_1749
size
private static final org.slf4j.Logger
LOGGER
field_1_1741
LOGGER
static final boolean
$assertionsDisabled
field_1_1737
field_1_1737

Constructor summary

ModifierConstructor
public (AllocationManager$ParentAllocationInfo parentAllocationInfo)

Method summary

Modifier and TypeMethod
private AllocationManager$Block
getBlockFromFreeList(int firstLevelIndex, int secondLevelIndex)
method_1_2152(int arg0, int arg1)
getFreeHead(int firstLevelIndex, int secondLevelIndex)
private void
setBlockFreeList(int firstLevelIndex, int secondLevelIndex, TlsfAllocator$Block block)
method_1_2161(int arg0, int arg1, class_1_291$class_1_293 arg2)
setFreeHead(int firstLevelIndex, int secondLevelIndex, AllocationManager$Block block)
private static long
alignUp(long x, long align)
method_1_2147(long arg0, long arg1)
roundToNearestAlignment(long size, long align)
private static long
alignDown(long x, long align)
method_1_2146(long arg0, long arg1)
roundDownToAlignment(long size, long align)
private static int
findLastSignificantBit(long x)
method_1_2150(long arg0)
floorLog2(long size)
private static int
findFirstSignificantBit(int x)
method_1_2149(int arg0)
getLowestAvailableIndex(int availabilityFlags)
private AllocationManager$Index
getLevelIndex(long size)
method_1_2153(long arg0)
getIndexForSizeRaw(long size)
private AllocationManager$Index
mappingSearch(long size)
method_1_2156(long arg0)
getIndexForSize(long size)
private void
insertFreeBlock(TlsfAllocator$Block block)
method_1_2154(class_1_291$class_1_293 arg0)
addBlockToFreeList(AllocationManager$Block block)
private void
removeFreeBlock(TlsfAllocator$Block block, int firstLevel, int secondLevel)
method_1_2160(class_1_291$class_1_293 arg0, int arg1, int arg2)
takeBlockFromFreeList(AllocationManager$Block block, int firstLevelIndex, int secondLevelIndex)
private void
trimBlock(TlsfAllocator$Block block, long size)
method_1_2162(class_1_291$class_1_293 arg0, long arg1)
trySplitBlock(AllocationManager$Block block, long minSize)
public AllocationManager$Allocation
allocate(long size, int align)
method_1_2148(long arg0, int arg1)
allocate(long size, int vertexSize)
private void
mergeBlockWithPrevious(TlsfAllocator$Block block)
method_1_2158(class_1_291$class_1_293 arg0)
coalesceLeft(AllocationManager$Block block)
private void
mergeBlockWithNext(TlsfAllocator$Block block)
method_1_2157(class_1_291$class_1_293 arg0)
coalesceRight(AllocationManager$Block block)
public void
free(TlsfAllocator$Allocation allocation)
method_1_2151(class_1_291$class_1_292 arg0)
free(AllocationManager$Allocation allocation)
public boolean
isCompletelyFree()
method_1_2155()
isEmpty()
public void
printAllocatorStatistics(String name)
method_1_2159(String arg0)
logState(String name)