aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/appletlib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index f760af2cb..2d01a3ae7 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -942,6 +942,14 @@ int main(int argc UNUSED_PARAM, char **argv)
942 */ 942 */
943 mallopt(M_MMAP_THRESHOLD, 32 * 1024 - 256); 943 mallopt(M_MMAP_THRESHOLD, 32 * 1024 - 256);
944#endif 944#endif
945#if 0 /*def M_TOP_PAD*/
946 /* When the program break is increased, then M_TOP_PAD bytes are added
947 * to the sbrk(2) request. When the heap is trimmed because of free(3),
948 * this much free space is preserved at the top of the heap.
949 * glibc default seems to be way too big: 128k, but need to verify.
950 */
951 mallopt(M_TOP_PAD, 8 * 1024);
952#endif
945 953
946#if !BB_MMU 954#if !BB_MMU
947 /* NOMMU re-exec trick sets high-order bit in first byte of name */ 955 /* NOMMU re-exec trick sets high-order bit in first byte of name */