UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MemoryBase.h File Reference
#include "CoreTypes.h"
#include "HAL/PlatformAtomics.h"
#include "HAL/PlatformCrt.h"
#include "Misc/Exec.h"
#include "Misc/OutputDevice.h"
#include "Templates/Atomic.h"

Go to the source code of this file.

Classes

class  FUseSystemMallocForNew
 
class  FMalloc
 

Namespaces

namespace  UE
 
namespace  UE::Private
 

Macros

#define UPDATE_MALLOC_STATS   1
 

Enumerations

enum  { DEFAULT_ALIGNMENT = 0 , MIN_ALIGNMENT = 8 }
 

Functions

CORE_API UE::Private::TSAN_ATOMIC (class FMalloc *) GMalloc
 

Variables

CORE_API class FMalloc *const & GMalloc
 
CORE_API class FMalloc ** GFixedMallocLocationPtr
 

Macro Definition Documentation

◆ UPDATE_MALLOC_STATS

#define UPDATE_MALLOC_STATS   1

Enumeration Type Documentation

◆ anonymous enum

Enumerator
DEFAULT_ALIGNMENT 
MIN_ALIGNMENT 

Variable Documentation

◆ GFixedMallocLocationPtr

CORE_API class FMalloc** GFixedMallocLocationPtr
extern

Memory allocator pointer location when PLATFORM_USES_FIXED_GMalloc_CLASS is true.

◆ GMalloc

CORE_API class FMalloc* const& GMalloc
extern

Un-namespaced GMalloc remains exposed for backwards compatibility. Most callers should use FMemory::Malloc instead of accessing GMalloc directly. FMemory wraps GMalloc but also provides low-level memory tracking and AutoRTFM support.