From 807b2c2e02373827920f27757ea3b527eacc79a4 Mon Sep 17 00:00:00 2001 From: Lei Jin Date: Tue, 1 Apr 2014 16:26:07 -0700 Subject: [PATCH] reduce thread count in ThreadLocalTest.ConcurrentReadWriteTest Summary: to make it less CPU intensive Test Plan: ran it Reviewers: igor Reviewed By: igor CC: leveldb Differential Revision: https://reviews.facebook.net/D17403 --- util/thread_local_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/thread_local_test.cc b/util/thread_local_test.cc index b1a865d5e..d273947a8 100644 --- a/util/thread_local_test.cc +++ b/util/thread_local_test.cc @@ -152,12 +152,12 @@ TEST(ThreadLocalTest, ConcurrentReadWriteTest) { ThreadLocalPtr tls2; port::Mutex mu1; port::CondVar cv1(&mu1); - Params p1(&mu1, &cv1, nullptr, 128); + Params p1(&mu1, &cv1, nullptr, 16); p1.tls2 = &tls2; port::Mutex mu2; port::CondVar cv2(&mu2); - Params p2(&mu2, &cv2, nullptr, 128); + Params p2(&mu2, &cv2, nullptr, 16); p2.doWrite = true; p2.tls2 = &tls2;