#include <MallocAnsi.h>
|
| | FMallocAnsi () |
| |
| virtual void * | Malloc (SIZE_T Size, uint32 Alignment) override |
| |
| virtual void * | TryMalloc (SIZE_T Size, uint32 Alignment) override |
| |
| virtual void * | Realloc (void *Ptr, SIZE_T NewSize, uint32 Alignment) override |
| |
| virtual void * | TryRealloc (void *Ptr, SIZE_T NewSize, uint32 Alignment) override |
| |
| virtual void | Free (void *Ptr) override |
| |
| virtual bool | GetAllocationSize (void *Original, SIZE_T &SizeOut) override |
| |
| virtual bool | IsInternallyThreadSafe () const override |
| |
| virtual bool | ValidateHeap () override |
| |
| virtual const TCHAR * | GetDescriptiveName () override |
| |
| virtual CORE_API void * | MallocZeroed (SIZE_T Count, uint32 Alignment=DEFAULT_ALIGNMENT) |
| |
| virtual CORE_API void * | TryMallocZeroed (SIZE_T Count, uint32 Alignment=DEFAULT_ALIGNMENT) |
| |
| virtual SIZE_T | QuantizeSize (SIZE_T Count, uint32 Alignment) |
| |
| virtual void | Trim (bool bTrimThreadCaches) |
| |
| virtual void | SetupTLSCachesOnCurrentThread () |
| |
| virtual void | MarkTLSCachesAsUsedOnCurrentThread () |
| |
| virtual void | MarkTLSCachesAsUnusedOnCurrentThread () |
| |
| virtual void | ClearAndDisableTLSCachesOnCurrentThread () |
| |
| virtual CORE_API void | InitializeStatsMetadata () |
| |
| virtual CORE_API void | UpdateStats () |
| |
| virtual CORE_API void | GetAllocatorStats (FGenericMemoryStats &out_Stats) |
| |
| virtual void | DumpAllocatorStats (class FOutputDevice &Ar) |
| |
| virtual void | OnMallocInitialized () |
| |
| virtual void | OnPreFork () |
| |
| virtual void | OnPostFork () |
| |
| virtual uint64 | GetImmediatelyFreeableCachedMemorySize () const |
| |
| virtual uint64 | GetTotalFreeCachedMemorySize () const |
| |
| CORE_API void * | operator new (size_t Size) |
| |
| CORE_API void | operator delete (void *Ptr) |
| |
| void * | operator new[] (size_t Size) |
| |
| void | operator delete[] (void *Ptr) |
| |
| virtual CORE_API | ~FExec () |
| |
| virtual CORE_API bool | Exec (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar) |
| |
◆ FMallocAnsi()
| FMallocAnsi::FMallocAnsi |
( |
| ) |
|
Constructor enabling low fragmentation heap on platforms supporting it.
◆ Free()
| void FMallocAnsi::Free |
( |
void * |
Original | ) |
|
|
overridevirtual |
◆ GetAllocationSize()
| bool FMallocAnsi::GetAllocationSize |
( |
void * |
Original, |
|
|
SIZE_T & |
SizeOut |
|
) |
| |
|
overridevirtual |
If possible determine the size of the memory allocated at the given address
- Parameters
-
| 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 |
- Returns
- true if succeeded
Reimplemented from FMalloc.
◆ GetDescriptiveName()
Gets descriptive name for logging purposes.
- Returns
- pointer to human-readable malloc name
Reimplemented from FMalloc.
◆ IsInternallyThreadSafe()
| bool FMallocAnsi::IsInternallyThreadSafe |
( |
| ) |
const |
|
overridevirtual |
Returns if the allocator is guaranteed to be thread-safe and therefore doesn't need a unnecessary thread-safety wrapper around it.
- Returns
- true as we're using system allocator
Reimplemented from FMalloc.
◆ Malloc()
◆ Realloc()
◆ TryMalloc()
TryMalloc - like Malloc(), but may return a nullptr result if the allocation request cannot be satisfied.
Reimplemented from FMalloc.
◆ TryRealloc()
TryRealloc - like Realloc(), but may return a nullptr if the allocation request cannot be satisfied. Note that in this case the memory pointed to by Original will still be valid
Reimplemented from FMalloc.
◆ ValidateHeap()
| bool FMallocAnsi::ValidateHeap |
( |
| ) |
|
|
overridevirtual |
Validates the allocator's heap
Reimplemented from FMalloc.
The documentation for this class was generated from the following files: