summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/malloc.c?id=2e23f1755e14162eb3fa2237285dec556ccd360f
diff options
context:
space:
mode:
authorDavid van Moolenbroek <david@minix3.org>2015-10-28 01:05:39 +0000
committerDavid van Moolenbroek <david@minix3.org>2015-10-28 01:13:04 +0000
commit2e23f1755e14162eb3fa2237285dec556ccd360f (patch)
treed910df9276cb52232725c7522c021437ec701d88 /lib/libc/stdlib/malloc.c?id=2e23f1755e14162eb3fa2237285dec556ccd360f
parent2d6bbeb0b9065e2ad821a9068681a8a4afff23a7 (diff)
libc: fix needless malloc failures
The NetBSD libc malloc implementation performs its own out-of-memory check, presumably for performance reasons. The check makes a strong assumption about the address space layout, which is that memory- mapped pages are always located above the heap. However, this assumption does not necessarily hold on MINIX3, thus resulting in malloc reporting an out-of-memory condition without the system actually being out of memory at all. Evidence suggests that in particular dynamically linked (i.e., pkgsrc) binaries were affected by this issue - most notably git. Change-Id: If542fbace0a1cce12aa9e075d51992cbbbf26e94
Diffstat (limited to 'lib/libc/stdlib/malloc.c?id=2e23f1755e14162eb3fa2237285dec556ccd360f')
0 files changed, 0 insertions, 0 deletions