Skip to content

Commit 11319fe

Browse files
TNorthovermemfrob
authored andcommitted
Support: reduce stack used in default size test.
When the sanitizers aren't enabled they can use more than 1KB of stack, causing an overflow where there shouldn't be. Should fix Green Dragon test.
1 parent cea6647 commit 11319fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/unittests/Support/Threading.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ TEST(Threading, RunOnThreadSync) {
8282
#if defined(__APPLE__)
8383
TEST(Threading, AppleStackSize) {
8484
llvm::thread Thread([] {
85-
volatile unsigned char Var[8 * 1024 * 1024 - 1024];
85+
volatile unsigned char Var[8 * 1024 * 1024 - 10240];
8686
Var[0] = 0xff;
8787
ASSERT_EQ(Var[0], 0xff);
8888
});

0 commit comments

Comments
 (0)