35template <u
int32 NumCacheBlocks, u
int32 CachedByteLimit>
40 , FreedPageBlocksNum(0)
56 return FreeAllImpl(FreedPageBlocks, FreedPageBlocksNum, CachedTotal, Mutex);
94#if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_5_7
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32 Size
Definition VulkanMemory.cpp:4034
Definition OutputDevice.h:133
void Logf(const FmtType &Fmt)
Definition OutputDevice.h:234
FPThreadsRecursiveMutex FPlatformRecursiveMutex
Definition AndroidPlatformMutex.h:12
Definition CachedOSPageAllocator.h:14
void * Ptr
Definition CachedOSPageAllocator.h:15
FFreePageBlock()
Definition CachedOSPageAllocator.h:18
SIZE_T ByteSize
Definition CachedOSPageAllocator.h:16
Definition CachedOSPageAllocator.h:11
static bool IsOSAllocation(SIZE_T Size, uint32 CachedByteLimit)
Definition CachedOSPageAllocator.h:29
void * AllocateImpl(SIZE_T Size, uint32 CachedByteLimit, FFreePageBlock *First, FFreePageBlock *Last, uint32 &FreedPageBlocksNum, SIZE_T &CachedTotal, UE::FPlatformRecursiveMutex *Mutex)
Definition CachedOSPageAllocator.cpp:11
void FreeAllImpl(FFreePageBlock *First, uint32 &FreedPageBlocksNum, SIZE_T &CachedTotal, UE::FPlatformRecursiveMutex *Mutex)
Definition CachedOSPageAllocator.cpp:131
void FreeImpl(void *Ptr, SIZE_T Size, uint32 NumCacheBlocks, uint32 CachedByteLimit, FFreePageBlock *First, uint32 &FreedPageBlocksNum, SIZE_T &CachedTotal, UE::FPlatformRecursiveMutex *Mutex, bool ThreadIsTimeCritical)
Definition CachedOSPageAllocator.cpp:94
Definition CachedOSPageAllocator.h:37
void FreeAll(UE::FPlatformRecursiveMutex *Mutex=nullptr)
Definition CachedOSPageAllocator.h:54
void UpdateStats()
Definition CachedOSPageAllocator.h:64
void Refresh()
Definition CachedOSPageAllocator.h:60
void DumpAllocatorStats(class FOutputDevice &Ar)
Definition CachedOSPageAllocator.h:83
uint64 GetCachedFreeTotal() const
Definition CachedOSPageAllocator.h:68
UE_FORCEINLINE_HINT void * Allocate(SIZE_T Size, uint32 AllocationHint=0, UE::FPlatformRecursiveMutex *Mutex=nullptr)
Definition CachedOSPageAllocator.h:44
void Free(void *Ptr, SIZE_T Size, UE::FPlatformRecursiveMutex *Mutex=nullptr, bool ThreadIsTimeCritical=false)
Definition CachedOSPageAllocator.h:49
uint64 GetCachedImmediatelyFreeable() const
Definition CachedOSPageAllocator.h:73
bool IsOSAllocation(SIZE_T Size)
Definition CachedOSPageAllocator.h:78
TCachedOSPageAllocator()
Definition CachedOSPageAllocator.h:38