![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Inheritance diagram for FMallocPurgatoryProxy:Additional Inherited Members | |
Static Public Attributes inherited from FMalloc | |
| static CORE_API TAtomic< uint64 > | MaxSingleAlloc |
Protected Member Functions inherited from FExec | |
| virtual bool | Exec_Runtime (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
| virtual bool | Exec_Dev (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
| virtual bool | Exec_Editor (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
|
inline |
Constructor for thread safe proxy malloc that takes a malloc to be used and a synchronization object used via FScopeLock as a parameter.
| InMalloc | FMalloc that is going to be used for actual allocations |
|
inlineoverridevirtual |
Clears the TLS caches on the current thread and disables any future caching.
Reimplemented from FMalloc.
|
inlineoverridevirtual |
Dumps allocator stats to an output device.
Reimplemented from FMalloc.
Free
Implements FMalloc.
|
inlineoverridevirtual |
If possible determine the size of the memory allocated at the given address
| Original | - Pointer to memory we are checking the size of |
| SizeOut | - If possible, this value is set to the size of the passed in pointer |
Reimplemented from FMalloc.
|
inlineoverridevirtual |
Writes allocator stats from the last update into the specified destination.
Reimplemented from FMalloc.
Gets descriptive name for logging purposes.
Reimplemented from FMalloc.
Initializes stats metadata. We need to do this as soon as possible, but cannot be done in the constructor due to the FName::StaticInit
Reimplemented from FMalloc.
Malloc
Implements FMalloc.
Mark TLS caches for current thread as unused. Typically before going to sleep. These are the threads that we can trim without waking them up.
Reimplemented from FMalloc.
Mark TLS caches for the current thread as used. Thread has woken up to do some processing and needs its TLS caches back.
Reimplemented from FMalloc.
Notifies the malloc implementation that initialization of all allocators in GMalloc is complete, so it's safe to initialize any extra features that require "regular" allocations
Reimplemented from FMalloc.
Notifies the malloc implementation that the process has forked so we can try and avoid dirtying pre-fork pages.
Reimplemented from FMalloc.
Notifies the malloc implementation that the process is about to fork. May be used to trim caches etc.
Reimplemented from FMalloc.
|
inlineoverridevirtual |
For some allocators this will return the actual size that should be requested to eliminate internal fragmentation. The return value will always be >= Count. This can be used to grow and shrink containers to optimal sizes. This call is always fast and threadsafe with no locking.
Reimplemented from FMalloc.
|
inlineoverridevirtual |
Realloc
Implements FMalloc.
Set up TLS caches on the current thread. These are the threads that we can trim.
Reimplemented from FMalloc.
Releases as much memory as possible. Must be called from the main thread.
Reimplemented from FMalloc.
Validates the allocator's heap
Reimplemented from FMalloc.