Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FGenericStackBasedMallocCrash Struct Reference

#include <GenericPlatformMallocCrash.h>

+ Inheritance diagram for FGenericStackBasedMallocCrash:
+ Collaboration diagram for FGenericStackBasedMallocCrash:

Public Member Functions

 FGenericStackBasedMallocCrash (FMalloc *MainMalloc)
 
virtual ~FGenericStackBasedMallocCrash ()
 
void SetAsGMalloc ()
 
virtual voidMalloc (SIZE_T Size, uint32 Alignment) override
 
virtual voidRealloc (void *Ptr, SIZE_T NewSize, uint32 Alignment) override
 
virtual void Free (void *) override
 
virtual const TCHAR * GetDescriptiveName () override
 
- Public Member Functions inherited from FMalloc
virtual voidTryMalloc (SIZE_T Count, uint32 Alignment=DEFAULT_ALIGNMENT)
 
virtual voidTryRealloc (void *Original, SIZE_T Count, uint32 Alignment=DEFAULT_ALIGNMENT)
 
virtual SIZE_T QuantizeSize (SIZE_T Count, uint32 Alignment)
 
virtual bool GetAllocationSize (void *Original, SIZE_T &SizeOut)
 
virtual void Trim (bool bTrimThreadCaches)
 
virtual void SetupTLSCachesOnCurrentThread ()
 
virtual void ClearAndDisableTLSCachesOnCurrentThread ()
 
virtual void InitializeStatsMetadata ()
 
virtual void UpdateStats ()
 
virtual void GetAllocatorStats (FGenericMemoryStats &out_Stats)
 
virtual void DumpAllocatorStats (class FOutputDevice &Ar)
 
virtual bool IsInternallyThreadSafe () const
 
virtual bool ValidateHeap ()
 
virtual void OnMallocInitialized ()
 
virtual void OnPreFork ()
 
virtual void OnPostFork ()
 
- Public Member Functions inherited from FUseSystemMallocForNew
voidoperator new (size_t Size)
 
void operator delete (void *Ptr)
 
voidoperator new[] (size_t Size)
 
void operator delete[] (void *Ptr)
 
- Public Member Functions inherited from FExec
virtual ~FExec ()
 
virtual bool Exec (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar)
 

Static Public Member Functions

static FGenericStackBasedMallocCrashGet (FMalloc *MainMalloc=nullptr)
 

Private Types

enum  { MEMORYPOOL_SIZE = 256 * 1024 }
 

Private Attributes

uint8CurrentFreeMemPtr
 
uint8FreeMemoryEndPtr
 

Additional Inherited Members

- Static Public Attributes inherited from FMalloc
static TAtomic< uint64MaxSingleAlloc
 
- Protected Member Functions inherited from FExec
virtual bool Exec_Dev (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar)
 
virtual bool Exec_Editor (UWorld *InWorld, const TCHAR *Cmd, FOutputDevice &Ar)
 

Detailed Description

Definition at line 169 of file GenericPlatformMallocCrash.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
MEMORYPOOL_SIZE 

Definition at line 191 of file GenericPlatformMallocCrash.h.

Constructor & Destructor Documentation

◆ FGenericStackBasedMallocCrash()

FGenericStackBasedMallocCrash::FGenericStackBasedMallocCrash ( FMalloc * MainMalloc)

◆ ~FGenericStackBasedMallocCrash()

virtual FGenericStackBasedMallocCrash::~FGenericStackBasedMallocCrash ( )
virtual

Member Function Documentation

◆ Free()

virtual void FGenericStackBasedMallocCrash::Free ( void * Original)
overridevirtual

Free

Implements FMalloc.

◆ Get()

static FGenericStackBasedMallocCrash & FGenericStackBasedMallocCrash::Get ( FMalloc * MainMalloc = nullptr)
static

Creates a new instance.

◆ GetDescriptiveName()

virtual const TCHAR * FGenericStackBasedMallocCrash::GetDescriptiveName ( )
inlineoverridevirtual

Gets descriptive name for logging purposes.

Returns
pointer to human-readable malloc name

Reimplemented from FMalloc.

Definition at line 185 of file GenericPlatformMallocCrash.h.

◆ Malloc()

virtual void * FGenericStackBasedMallocCrash::Malloc ( SIZE_T Count,
uint32 Alignment )
overridevirtual

Malloc

Implements FMalloc.

◆ Realloc()

virtual void * FGenericStackBasedMallocCrash::Realloc ( void * Original,
SIZE_T Count,
uint32 Alignment )
overridevirtual

Realloc

Implements FMalloc.

◆ SetAsGMalloc()

void FGenericStackBasedMallocCrash::SetAsGMalloc ( )

Member Data Documentation

◆ CurrentFreeMemPtr

uint8* FGenericStackBasedMallocCrash::CurrentFreeMemPtr
private

Definition at line 196 of file GenericPlatformMallocCrash.h.

◆ FreeMemoryEndPtr

uint8* FGenericStackBasedMallocCrash::FreeMemoryEndPtr
private

Definition at line 197 of file GenericPlatformMallocCrash.h.


The documentation for this struct was generated from the following file: