10#include <libkern/OSAtomic.h>
11#include <Foundation/NSObject.h>
21#ifndef APPLE_SUPPORT_INSTRUMENTED_ALLOCS
22 #define APPLE_SUPPORT_INSTRUMENTED_ALLOCS (!UE_BUILD_SHIPPING)
47#define APPLE_PLATFORM_OBJECT_ALLOC_OVERRIDES(ClassName) \
48+ (nullable OSQueueHead*)classAllocator \
50 static OSQueueHead Queue = OS_ATOMIC_QUEUE_INIT; \
53+ (id)allocWithZone:(NSZone*) Zone \
55 return (ClassName*)[FApplePlatformObject allocClass:self]; \
59 return (ClassName*)[FApplePlatformObject allocClass:self]; \
106 static void SetAllocatorToUse();
123 void Commit(
size_t InOffset,
size_t InSize);
124 void Decommit(
size_t InOffset,
size_t InSize);
139 Commit(0, GetActualSize());
144 Decommit(0, GetActualSize());
149 return VMSizeDivVirtualSizeAlignment * GetVirtualSizeAlignment();
153 static size_t GetCommitAlignment();
154 static size_t GetVirtualSizeAlignment();
158#if APPLE_SUPPORT_INSTRUMENTED_ALLOCS
165 static void ConfigureDefaultCFAllocator(
void);
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32 Size
Definition VulkanMemory.cpp:4034
Definition MemoryBase.h:99