aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-02-24 10:28:32 -0600
committerGravatar Vijay Pai <vpai@google.com>2018-02-24 10:28:32 -0600
commitd71b55db98fe6eec1c5207a335209da2a0c56449 (patch)
tree0471dc0cf42992460c4ecfad91c4b672a2d2383c /test/core
parent9d7e57cac410d08d8047c1031aeafe26c24ba4fd (diff)
Reduce thread count to reduce stack frame size
Diffstat (limited to 'test/core')
-rw-r--r--test/core/gpr/mpscq_test.cc4
-rw-r--r--test/core/gprpp/thd_test.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/core/gpr/mpscq_test.cc b/test/core/gpr/mpscq_test.cc
index 33f93878e0..1e929fcf33 100644
--- a/test/core/gpr/mpscq_test.cc
+++ b/test/core/gpr/mpscq_test.cc
@@ -146,8 +146,8 @@ static void test_mt_multipop(void) {
gpr_log(GPR_DEBUG, "test_mt_multipop");
gpr_event start;
gpr_event_init(&start);
- grpc_core::Thread thds[100];
- grpc_core::Thread pull_thds[100];
+ grpc_core::Thread thds[50];
+ grpc_core::Thread pull_thds[50];
thd_args ta[GPR_ARRAY_SIZE(thds)];
gpr_mpscq q;
gpr_mpscq_init(&q);
diff --git a/test/core/gprpp/thd_test.cc b/test/core/gprpp/thd_test.cc
index 1aa8632757..a126784e72 100644
--- a/test/core/gprpp/thd_test.cc
+++ b/test/core/gprpp/thd_test.cc
@@ -30,7 +30,7 @@
#include "test/core/util/test_config.h"
-#define NUM_THREADS 300
+#define NUM_THREADS 100
struct test {
gpr_mu mu;