From d2cb9efe818c389c6ef7131ae2e8bfa8998292d5 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 12 Nov 1998 23:31:42 +0000 Subject: [PATCH] increase max workers to 100; still a good idea to clamp nworkers --- bin/tests/rwlock_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/tests/rwlock_test.c b/bin/tests/rwlock_test.c index 073a0634c4..328b09c1e9 100644 --- a/bin/tests/rwlock_test.c +++ b/bin/tests/rwlock_test.c @@ -67,7 +67,7 @@ void main(int argc, char *argv[]) { unsigned int nworkers; unsigned int i; - isc_thread_t workers[24]; + isc_thread_t workers[100]; char name[100]; void *dupname; @@ -75,6 +75,8 @@ main(int argc, char *argv[]) { nworkers = atoi(argv[1]); else nworkers = 2; + if (nworkers > 100) + nworkers = 100; printf("%d workers\n", nworkers); INSIST(isc_rwlock_init(&lock, 5, 10) == ISC_R_SUCCESS);