diff options
author | Jim Meyering <jim@meyering.net> | 2003-02-21 09:51:26 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-02-21 09:51:26 +0000 |
commit | 0801bebeb491d9233c49eab40e19808ff8bfaf85 (patch) | |
tree | 62025dc5c6d296705ebb4193a5263d64975f6b62 /lib | |
parent | 49daa21e009337900f4a9fc1253354aa6096c404 (diff) | |
download | coreutils-0801bebeb491d9233c49eab40e19808ff8bfaf85.tar.xz |
(run_on_mmaped_stack): Allocate 256MB, not 1GB
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mmap-stack.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mmap-stack.c b/lib/mmap-stack.c index 2b84117cf..30d1da8d1 100644 --- a/lib/mmap-stack.c +++ b/lib/mmap-stack.c @@ -88,22 +88,22 @@ void run_on_mmaped_stack (void (*func) (void), size_t argc, ...) { ucontext_t ctx; - size_t size = 1024 * 1024 * 1024; - long bs_argv[ARGC_MAX]; + size_t size = 256 * 1024 * 1024; + long argv[ARGC_MAX]; unsigned i; va_list ap; assert (argc <= ARGC_MAX); va_start (ap, argc); for (i = 0; i < argc; i++) - bs_argv[i] = va_arg (ap, long); + argv[i] = va_arg (ap, long); va_end (ap); if (get_context (&ctx, size) == 0) { makecontext (&ctx, func, argc, - bs_argv[0], bs_argv[1], bs_argv[2], - bs_argv[3], bs_argv[4], bs_argv[5]); + argv[0], argv[1], argv[2], + argv[3], argv[4], argv[5]); setcontext (&ctx); } |