Loading...
--- Libc/Libc-320/gen/stack_logging.c
+++ Libc/Libc-262.2.12/gen/stack_logging.c
@@ -31,8 +31,6 @@
#import <pthread.h>
#import <mach/mach.h>
#include <mach/vm_statistics.h>
-#import <malloc/malloc.h>
-#import <stdlib.h>
extern void spin_lock(int *);
@@ -40,8 +38,7 @@
void *address;
if (vm_allocate(mach_task_self(), (vm_address_t *)&address, bytes,
VM_MAKE_TAG(VM_MEMORY_ANALYSIS_TOOL)| TRUE)) {
- malloc_printf("malloc[%d]: Out of memory while stack logging\n", getpid());
- abort();
+ address = 0;
}
return (void *)address;
}