Skip to content

Commit 3ed455a

Browse files
committed
Increase compiler thread stack size for ASAN on Windows
ASAN inflates stack frames ~3x, so compiler threads need more stack space. This was only done for Darwin before.
1 parent b51f1a2 commit 3ed455a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/WTF/wtf/Threading.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static std::optional<size_t> stackSize(ThreadType threadType)
109109
#if PLATFORM(PLAYSTATION)
110110
if (threadType == ThreadType::JavaScript)
111111
return 512 * KB;
112-
#elif OS(DARWIN) && (ASAN_ENABLED || ASSERT_ENABLED)
112+
#elif (OS(DARWIN) || OS(WINDOWS)) && (ASAN_ENABLED || ASSERT_ENABLED)
113113
if (threadType == ThreadType::Compiler)
114114
return 1 * MB; // ASan / Debug build needs more stack space.
115115
#elif OS(WINDOWS)

0 commit comments

Comments
 (0)