diff options
author | jasone <jasone@FreeBSD.org> | 2008-11-03 21:17:18 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2008-11-03 21:17:18 +0000 |
commit | 9df0eb1bf3abcd3baad30f9593ec04993fd8056d (patch) | |
tree | 3003ac9eb634a37623e6d93b4ab3f2d2d6cc424c /lib/libc/stdlib/malloc.3 | |
parent | 9757361d220b602cdbb092515812a7b76957eb26 (diff) | |
download | FreeBSD-src-9df0eb1bf3abcd3baad30f9593ec04993fd8056d.zip FreeBSD-src-9df0eb1bf3abcd3baad30f9593ec04993fd8056d.tar.gz |
Revert to preferring mmap(2) over sbrk(2) when mapping memory, due to
potential extreme contention in the kernel for multi-threaded applications
on SMP systems.
Reported by: kris
Diffstat (limited to 'lib/libc/stdlib/malloc.3')
-rw-r--r-- | lib/libc/stdlib/malloc.3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3 index 994038d..a621a24 100644 --- a/lib/libc/stdlib/malloc.3 +++ b/lib/libc/stdlib/malloc.3 @@ -255,7 +255,7 @@ If both the .Dq D and .Dq M -options are enabled, the allocator prefers the DSS over anonymous mappings, +options are enabled, the allocator prefers anonymous mappings over the DSS, but allocation only fails if memory cannot be acquired via either method. If neither option is enabled, then the .Dq M |