diff options
author | Kostya Serebryany <kcc@google.com> | 2016-08-25 19:08:10 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-08-25 19:08:10 +0000 |
commit | 3a46def40c2c679c087918cfec00e6120b93da50 (patch) | |
tree | 3b3ee5da52dee8638603fdb3a6b7e3f674020d39 | |
parent | 260daed1473f990b2f1d43d4e4b39331b2df7f04 (diff) | |
download | bcm5719-llvm-3a46def40c2c679c087918cfec00e6120b93da50.tar.gz bcm5719-llvm-3a46def40c2c679c087918cfec00e6120b93da50.zip |
[lsan] one more test fix to please the Debian Sid bot (this time, confirmed on the proper machine). Apparently, newer glibc uses slightly more stack
llvm-svn: 279768
-rw-r--r-- | compiler-rt/test/lsan/TestCases/guard-page.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/test/lsan/TestCases/guard-page.c b/compiler-rt/test/lsan/TestCases/guard-page.c index 44ede1a8cf0..25d63e2720c 100644 --- a/compiler-rt/test/lsan/TestCases/guard-page.c +++ b/compiler-rt/test/lsan/TestCases/guard-page.c @@ -22,7 +22,7 @@ static void die(const char* msg, int err) { static void ctxfunc() { pthread_mutex_lock(&mutex); ctxfunc_started = 1; - printf("ctxfunc\n"); + // printf("ctxfunc\n"); pthread_cond_signal(&cond); pthread_mutex_unlock(&mutex); // Leave this context alive when the program exits. @@ -36,11 +36,11 @@ static void* thread(void* arg) { if (getcontext(&ctx) < 0) die("getcontext", 0); - stack = malloc(1 << 12); + stack = malloc(1 << 11); if (stack == NULL) die("malloc", 0); ctx.uc_stack.ss_sp = stack; - ctx.uc_stack.ss_size = 1 << 12; + ctx.uc_stack.ss_size = 1 << 11; makecontext(&ctx, ctxfunc, 0); setcontext(&ctx); die("setcontext", 0); |