Loading...
--- dyld/dyld-1284.13/common/Array.h
+++ dyld/dyld-1235.2/common/Array.h
@@ -25,8 +25,6 @@
#define Array_h
#include <algorithm>
-#include <span>
-
#include <stdint.h>
#include <stdio.h>
#include <assert.h>
@@ -36,7 +34,6 @@
#if !TARGET_OS_EXCLAVEKIT
#include <mach/mach.h>
#endif
-
#include "Allocator.h"
namespace dyld3 {
@@ -170,7 +167,7 @@
// MAXCOUNT is not specified, keep doubling size
_overflowBufferSize = round_page(std::max(this->_allocCount * 2, n) * sizeof(T));
}
-#if !DYLD_FEATURE_EMBEDDED_PAGE_ALLOCATOR
+#if !TARGET_OS_EXCLAVEKIT
int kr = ::vm_allocate(mach_task_self(), (vm_address_t*)&_overflowBuffer, (vm_size_t)_overflowBufferSize, VM_FLAGS_ANYWHERE | VM_MAKE_TAG(VM_MEMORY_DYLD));
#else
_overflowBuffer = lsl::MemoryManager::allocate_pages(_overflowBufferSize);
@@ -202,7 +199,7 @@
this->_allocCount = _overflowBufferSize / sizeof(T);
if ( oldBuffer != 0 )
-#if !DYLD_FEATURE_EMBEDDED_PAGE_ALLOCATOR
+#if !TARGET_OS_EXCLAVEKIT
::vm_deallocate(mach_task_self(), (vm_address_t)oldBuffer, (vm_size_t)oldBufferSize);
#else
lsl::MemoryManager::deallocate_pages(oldBuffer, oldBufferSize);
@@ -226,7 +223,7 @@
clear();
if ( _overflowBuffer != 0 )
-#if !DYLD_FEATURE_EMBEDDED_PAGE_ALLOCATOR
+#if !TARGET_OS_EXCLAVEKIT
::vm_deallocate(mach_task_self(), (vm_address_t)_overflowBuffer, (vm_size_t)_overflowBufferSize);
#else
lsl::MemoryManager::deallocate_pages(_overflowBuffer, _overflowBufferSize);
@@ -241,7 +238,7 @@
// Free our buffer if we have one
if ( _overflowBuffer != 0 )
-#if !DYLD_FEATURE_EMBEDDED_PAGE_ALLOCATOR
+#if !TARGET_OS_EXCLAVEKIT
vm_deallocate(mach_task_self(), (vm_address_t)_overflowBuffer, (vm_size_t)_overflowBufferSize);
#else
lsl::MemoryManager::deallocate_pages(_overflowBuffer, _overflowBufferSize);