Loading...
--- dyld/dyld-1245.1/common/FileManager.cpp
+++ dyld/dyld-1125.5/common/FileManager.cpp
@@ -95,7 +95,6 @@
} __attribute__((aligned(4), packed));
typedef struct VolAttrBuf VolAttrBuf;
- STACK_ALLOCATOR(ephemeralAllocator, 0);
while (1) {
int fsCount = getfsstat(nullptr, 0, MNT_NOWAIT);
if (fsCount == -1) {
@@ -103,10 +102,10 @@
break;
}
int fsInfoSize = fsCount*sizeof(struct statfs);
- auto fsInfos = (struct statfs *)ephemeralAllocator.malloc(fsInfoSize);
+ auto fsInfos = (struct statfs *)_allocator->malloc(fsInfoSize);
if (this->getfsstat(fsInfos, fsInfoSize, MNT_NOWAIT) != fsCount) {
// Retry
- ephemeralAllocator.free((void*)fsInfos);
+ _allocator->free((void*)fsInfos);
continue;
}
for (auto i = 0; i < fsCount; ++i) {
@@ -139,7 +138,7 @@
_fsUUIDMap->insert({f_fsid, UUID()});
}
}
- ephemeralAllocator.free((void*)fsInfos);
+ _allocator->free((void*)fsInfos);
break;
}
}