[ConcurrentLinearAllocator] Fix third place where 64k was passed in as an alignment for non fastpath platforms.

#tests editor
#rnx
#rb trivial

[CL 27931460 by anton dunchev in ue5-main branch]
This commit is contained in:
anton dunchev
2023-09-15 16:12:26 -04:00
parent fd0824abbe
commit 7bde660772

View File

@@ -405,7 +405,7 @@ public:
//support for oversized Blocks
if (HeaderSize + Size + Alignment > BlockAllocationTag::BlockSize)
{
FBlockHeader* LargeHeader = new (BlockAllocationTag::Allocator::Malloc(HeaderSize + Size + Alignment, BlockAllocationTag::BlockSize)) FBlockHeader;
FBlockHeader* LargeHeader = new (BlockAllocationTag::Allocator::Malloc(HeaderSize + Size + Alignment, alignof(FBlockHeader))) FBlockHeader;
MemoryTrace_MarkAllocAsHeap(uint64(LargeHeader), EMemoryTraceRootHeap::SystemMemory);
checkSlow(IsAligned(LargeHeader, alignof(FBlockHeader)));