We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb70433 commit e262a9fCopy full SHA for e262a9f
1 file changed
src/mem.c
@@ -30,8 +30,16 @@ void *malloc(size_t size)
30
}
31
32
if (size <= malloc_arena_thresh)
33
+ {
34
p = _fmalloc(size);
- else p = fmemalloc(size);
35
+ if (p == NULL)
36
37
+ __dprintf("HEAP full: allocating from far memory %u\n", size);
38
+ p = fmemalloc(size);
39
+ }
40
41
+ else
42
43
return p;
44
45
0 commit comments