summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-08-24 22:10:35 +0000
committerKostya Serebryany <kcc@google.com>2016-08-24 22:10:35 +0000
commitdb0fcdb03be06393dff74d89f36995f3679856b0 (patch)
tree7945fe16d9c1af0a023e625d4bbbaa6e23b65e7a
parent7f5884a489ecadd889bffbea19d6dfab9859ddee (diff)
downloadbcm5719-llvm-db0fcdb03be06393dff74d89f36995f3679856b0.tar.gz
bcm5719-llvm-db0fcdb03be06393dff74d89f36995f3679856b0.zip
[lsan] give a test a bit more stack -- it started failing after r279664 on the debian bot, hopefully this is a fix.
llvm-svn: 279674
-rw-r--r--compiler-rt/test/lsan/TestCases/guard-page.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/test/lsan/TestCases/guard-page.c b/compiler-rt/test/lsan/TestCases/guard-page.c
index 5c70a9f08ac..44ede1a8cf0 100644
--- a/compiler-rt/test/lsan/TestCases/guard-page.c
+++ b/compiler-rt/test/lsan/TestCases/guard-page.c
@@ -22,6 +22,7 @@ static void die(const char* msg, int err) {
static void ctxfunc() {
pthread_mutex_lock(&mutex);
ctxfunc_started = 1;
+ printf("ctxfunc\n");
pthread_cond_signal(&cond);
pthread_mutex_unlock(&mutex);
// Leave this context alive when the program exits.
@@ -35,11 +36,11 @@ static void* thread(void* arg) {
if (getcontext(&ctx) < 0)
die("getcontext", 0);
- stack = malloc(1 << 10);
+ stack = malloc(1 << 12);
if (stack == NULL)
die("malloc", 0);
ctx.uc_stack.ss_sp = stack;
- ctx.uc_stack.ss_size = 1 << 10;
+ ctx.uc_stack.ss_size = 1 << 12;
makecontext(&ctx, ctxfunc, 0);
setcontext(&ctx);
die("setcontext", 0);
OpenPOWER on IntegriCloud