Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/sys Bump soft/hard limits for stack to 6MB fo...
details: https://anonhg.NetBSD.org/src/rev/53c70b16039e
branches: trunk
changeset: 1015085:53c70b16039e
user: rin <rin%NetBSD.org@localhost>
date: Tue Oct 13 06:58:57 2020 +0000
description:
Bump soft/hard limits for stack to 6MB for aarch64{,eb}, where old value
(~4MB) is too small to be accepted.
diffstat:
tests/lib/libc/sys/t_setrlimit.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 3ce3126eae50 -r 53c70b16039e tests/lib/libc/sys/t_setrlimit.c
--- a/tests/lib/libc/sys/t_setrlimit.c Tue Oct 13 06:55:25 2020 +0000
+++ b/tests/lib/libc/sys/t_setrlimit.c Tue Oct 13 06:58:57 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_setrlimit.c,v 1.6 2017/01/13 21:16:38 christos Exp $ */
+/* $NetBSD: t_setrlimit.c,v 1.7 2020/10/13 06:58:57 rin Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_setrlimit.c,v 1.6 2017/01/13 21:16:38 christos Exp $");
+__RCSID("$NetBSD: t_setrlimit.c,v 1.7 2020/10/13 06:58:57 rin Exp $");
#include <sys/resource.h>
#include <sys/mman.h>
@@ -517,7 +517,7 @@
struct rlimit res;
/* Ensure soft limit is not bigger than hard limit */
- res.rlim_cur = res.rlim_max = 4192256;
+ res.rlim_cur = res.rlim_max = 6 * 1024 * 1024;
ATF_REQUIRE(setrlimit(RLIMIT_STACK, &res) == 0);
ATF_REQUIRE(getrlimit(RLIMIT_STACK, &res) == 0);
ATF_CHECK(res.rlim_cur <= res.rlim_max);
Home |
Main Index |
Thread Index |
Old Index