12#ifndef UE_USE_VERYLARGEPAGEALLOCATOR
13#define UE_USE_VERYLARGEPAGEALLOCATOR 0
16#ifndef UE_ALLOW_OSMEMORYLOCKFREE
17#define UE_ALLOW_OSMEMORYLOCKFREE 0
24#define MALLOC_GT_HOOKS 1
26#define MALLOC_GT_HOOKS 0
37#define TIME_MALLOC (0)
166 static inline void Memcpy( T& Dest,
const T& Src )
169 Memcpy( &Dest, &Src,
sizeof( T ) );
197 void* Ptr = ::malloc(
Size);
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
return true
Definition ExternalRpcRegistry.cpp:601
@ DEFAULT_ALIGNMENT
Definition MemoryBase.h:24
void MemoryTrace_Free(uint64 Address, HeapId RootHeap=EMemoryTraceRootHeap::SystemMemory, uint32 ExternalCallstackId=0)
Definition MemoryTrace.h:200
@ SystemMemory
Definition MemoryTrace.h:35
void MemoryTrace_Alloc(uint64 Address, uint64 Size, uint32 Alignment, HeapId RootHeap=EMemoryTraceRootHeap::SystemMemory, uint32 ExternalCallstackId=0)
Definition MemoryTrace.h:199
UE_FORCEINLINE_HINT void DoGamethreadHook(int32 Index)
Definition UnrealMemory.h:32
uint32 Size
Definition VulkanMemory.cpp:4034
Definition MemoryBase.h:99
U16 Index
Definition radfft.cpp:71
static uint64 Cycles64()
Definition AndroidPlatformTime.h:34
Definition UnrealMemory.h:94
static void Memzero(T &Src)
Definition UnrealMemory.h:154
static UE_FORCEINLINE_HINT void * Memmove(void *Dest, const void *Src, SIZE_T Count)
Definition UnrealMemory.h:109
AllocationHints
Definition UnrealMemory.h:97
@ SmallPool
Definition UnrealMemory.h:101
@ Temporary
Definition UnrealMemory.h:100
@ None
Definition UnrealMemory.h:98
@ Default
Definition UnrealMemory.h:99
@ Max
Definition UnrealMemory.h:103
static UE_FORCEINLINE_HINT void * BigBlockMemcpy(void *Dest, const void *Src, SIZE_T Count)
Definition UnrealMemory.h:172
static CORE_API SIZE_T GetAllocSizeExternal(void *Original)
Definition UnrealMemory.cpp:524
static UE_FORCEINLINE_HINT void * StreamingMemcpy(void *Dest, const void *Src, SIZE_T Count)
Definition UnrealMemory.h:177
static FORCENOINLINE CORE_API SIZE_T QuantizeSize(SIZE_T Count, uint32 Alignment=DEFAULT_ALIGNMENT)
Definition UnrealMemory.cpp:700
static CORE_API void * ReallocExternal(void *Original, SIZE_T Count, uint32 Alignment=DEFAULT_ALIGNMENT)
Definition UnrealMemory.cpp:501
static CORE_API void SetupTLSCachesOnCurrentThread()
Definition UnrealMemory.cpp:573
UE_ALLOCATION_FUNCTION(1) static inline void *SystemMalloc(SIZE_T Size)
Definition UnrealMemory.h:195
static void SystemFree(void *Ptr)
Definition UnrealMemory.h:202
static CORE_API void Trim(bool bTrimThreadCaches=true)
Definition UnrealMemory.cpp:556
static UE_FORCEINLINE_HINT void * ParallelMemcpy(void *Dest, const void *Src, SIZE_T Count, EMemcpyCachePolicy Policy=EMemcpyCachePolicy::StoreCached)
Definition UnrealMemory.h:182
static void Memcpy(T &Dest, const T &Src)
Definition UnrealMemory.h:166
static UE_FORCEINLINE_HINT void * Memzero(void *Dest, SIZE_T Count)
Definition UnrealMemory.h:131
static CORE_API void ExplicitInit(FMalloc &Allocator)
Definition UnrealMemory.cpp:417
static CORE_API void MarkTLSCachesAsUsedOnCurrentThread()
Definition UnrealMemory.cpp:591
uint32 Alignment
Definition UnrealMemory.h:212
static UE_FORCEINLINE_HINT int32 Memcmp(const void *Buf1, const void *Buf2, SIZE_T Count)
Definition UnrealMemory.h:114
static UE_FORCEINLINE_HINT void * Memcpy(void *Dest, const void *Src, SIZE_T Count)
Definition UnrealMemory.h:160
static CORE_API void TestMemory()
Definition UnrealMemory.cpp:607
static UE_FORCEINLINE_HINT void Memswap(void *Ptr1, void *Ptr2, SIZE_T Size)
Definition UnrealMemory.h:187
static CORE_API void EnablePurgatoryTests()
Definition UnrealMemory.cpp:243
static CORE_API SIZE_T QuantizeSizeExternal(SIZE_T Count, uint32 Alignment=DEFAULT_ALIGNMENT)
Definition UnrealMemory.cpp:545
static CORE_API void * MallocZeroedExternal(SIZE_T Count, uint32 Alignment=DEFAULT_ALIGNMENT)
Definition UnrealMemory.cpp:535
static CORE_API void * MallocExternal(SIZE_T Count, uint32 Alignment=DEFAULT_ALIGNMENT)
Definition UnrealMemory.cpp:491
static CORE_API void FreeExternal(void *Original)
Definition UnrealMemory.cpp:511
static void Memset(T &Src, uint8 ValueToSet)
Definition UnrealMemory.h:125
SIZE_T Count
Definition UnrealMemory.h:213
static FORCENOINLINE CORE_API SIZE_T GetAllocSize(void *Original)
Definition UnrealMemory.cpp:690
static UE_FORCEINLINE_HINT void * Memset(void *Dest, uint8 Char, SIZE_T Count)
Definition UnrealMemory.h:119
static CORE_API void ClearAndDisableTLSCachesOnCurrentThread()
Definition UnrealMemory.cpp:583
static bool MemIsZero(const void *Ptr, SIZE_T Count)
Definition UnrealMemory.h:137
static CORE_API void MarkTLSCachesAsUnusedOnCurrentThread()
Definition UnrealMemory.cpp:599
static CORE_API void EnablePoisonTests()
Definition UnrealMemory.cpp:270
Definition UnrealMemory.h:75
UE_FORCEINLINE_HINT void Hit(int32 InIndex)
Definition UnrealMemory.h:82
UE_FORCEINLINE_HINT ~FScopedMallocTimer()
Definition UnrealMemory.h:79
UE_FORCEINLINE_HINT FScopedMallocTimer(int32 InIndex)
Definition UnrealMemory.h:76
Definition IsPointer.h:12