6#include "HAL/CriticalSection.h"
7#include "HAL/MemoryBase.h"
9struct FMallocCrashPool;
36struct FMallocCrashPool;
40
41
42
43struct FGenericPlatformMallocCrash
final :
public FMalloc
45 friend struct FPoolDesc;
46 friend struct FMallocCrashPool;
65 static FGenericPlatformMallocCrash&
Get(
FMalloc* MainMalloc =
nullptr );
68
69
70
71
72
73
74
75
76
77
81 virtual void*
Malloc( SIZE_T Size, uint32 Alignment )
override;
83 virtual void*
Realloc(
void* Ptr, SIZE_T NewSize, uint32 Alignment )
override;
85 virtual void Free(
void* )
override;
102 return TEXT(
"MallocCrash" );
130
131
179 virtual void*
Malloc(SIZE_T Size, uint32 Alignment)
override;
181 virtual void*
Realloc(
void* Ptr, SIZE_T NewSize, uint32 Alignment)
override;
183 virtual void Free(
void* )
override;
187 return TEXT(
"FGenericStackBasedMallocCrash");
FWindowsCriticalSection FCriticalSection
virtual const TCHAR * GetDescriptiveName() override
FGenericStackBasedMallocCrash(FMalloc *MainMalloc)
virtual void * Realloc(void *Ptr, SIZE_T NewSize, uint32 Alignment) override
static FGenericStackBasedMallocCrash & Get(FMalloc *MainMalloc=nullptr)
uint8 * CurrentFreeMemPtr
virtual ~FGenericStackBasedMallocCrash()
virtual void Free(void *) override
virtual void * Malloc(SIZE_T Size, uint32 Alignment) override