]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: Reduce stack size for bit alloc test case 9684/head
authorRamesh Chander <Ramesh.Chander@sandisk.com>
Mon, 13 Jun 2016 12:42:53 +0000 (05:42 -0700)
committerRamesh Chander <Ramesh.Chander@sandisk.com>
Tue, 14 Jun 2016 03:33:09 +0000 (20:33 -0700)
Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
src/test/objectstore/BitAllocator_test.cc

index dcff99b3fcf908a05068ec6f368d8606feba6240..ff8d1be166e50592b5124c97b48db8d2c3f49dea 100644 (file)
@@ -13,7 +13,7 @@
 
 #define bmap_test_assert(x) EXPECT_EQ(true, (x))
 #define NUM_THREADS 16
-#define MAX_BLOCKS (1024 * 1024 * 16)
+#define MAX_BLOCKS (1024 * 1024 * 1)
 
 TEST(BitAllocator, test_bmap_iter)
 {
@@ -481,7 +481,6 @@ verify_blocks(int64_t num_blocks, int64_t *blocks)
 }
 
 __thread int my_tid;
-__thread int64_t allocated_blocks[MAX_BLOCKS];
 
 void
 do_work(BitAllocator *alloc)
@@ -491,6 +490,7 @@ do_work(BitAllocator *alloc)
   int64_t start_block = -1;
   int64_t num_blocks = alloc->size() / NUM_THREADS;
   int total_alloced = 0;
+  int64_t *allocated_blocks = (int64_t *) new int64_t [MAX_BLOCKS];
 
   while (num_iters--) {
     printf("Allocating in tid %d.\n", my_tid);