aboutsummaryrefslogtreecommitdiff
path: root/libbb/appletlib.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2012-03-22 15:41:00 +0000
committerRon Yorston <rmy@pobox.com>2012-03-22 15:41:00 +0000
commit1118c95535ea51961437089fc3dece5ab4ea7e1b (patch)
tree1515bd2376a6d6c5123791662307ce2ed90cdf36 /libbb/appletlib.c
parent0d8b2c4a929ea9d3ac37499319fe0d8e7941a0c2 (diff)
parent066f39956641300c1e5c6bfe6c11a115cea3e2cf (diff)
downloadbusybox-w32-1118c95535ea51961437089fc3dece5ab4ea7e1b.tar.gz
busybox-w32-1118c95535ea51961437089fc3dece5ab4ea7e1b.tar.bz2
busybox-w32-1118c95535ea51961437089fc3dece5ab4ea7e1b.zip
Merge commit '066f39956641300c1e5c6bfe6c11a115cea3e2cf' into merge
Conflicts: procps/ps.c
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r--libbb/appletlib.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index d4025b9c7..b824b4775 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -34,17 +34,6 @@
34# include <malloc.h> /* for mallopt */ 34# include <malloc.h> /* for mallopt */
35#endif 35#endif
36 36
37/* Try to pull in PAGE_SIZE */
38#ifdef __linux__
39# include <sys/user.h>
40#endif
41#ifdef __GNU__ /* Hurd */
42# include <mach/vm_param.h>
43#endif
44#ifndef PAGE_SIZE
45# define PAGE_SIZE (4*1024) /* guess */
46#endif
47
48 37
49/* Declare <applet>_main() */ 38/* Declare <applet>_main() */
50#define PROTOTYPES 39#define PROTOTYPES
@@ -788,13 +777,13 @@ int main(int argc UNUSED_PARAM, char **argv)
788 * to keep before releasing to the OS 777 * to keep before releasing to the OS
789 * Default is way too big: 256k 778 * Default is way too big: 256k
790 */ 779 */
791 mallopt(M_TRIM_THRESHOLD, 2 * PAGE_SIZE); 780 mallopt(M_TRIM_THRESHOLD, 8 * 1024);
792#endif 781#endif
793#ifdef M_MMAP_THRESHOLD 782#ifdef M_MMAP_THRESHOLD
794 /* M_MMAP_THRESHOLD is the request size threshold for using mmap() 783 /* M_MMAP_THRESHOLD is the request size threshold for using mmap()
795 * Default is too big: 256k 784 * Default is too big: 256k
796 */ 785 */
797 mallopt(M_MMAP_THRESHOLD, 8 * PAGE_SIZE - 256); 786 mallopt(M_MMAP_THRESHOLD, 32 * 1024 - 256);
798#endif 787#endif
799 788
800#if !BB_MMU 789#if !BB_MMU