Skip to content

Commit 6ff4c9b

Browse files
CheSemazvonand
authored andcommitted
Merge pull request ClickHouse#79533 from ClickHouse/chesema-fix-alloc-alt-thread
fix ThreadStack::getSize
1 parent 50e81ef commit 6ff4c9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/ThreadStatus.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ struct ThreadStack
8989
auto size = std::max<size_t>(UNWIND_MINSIGSTKSZ, MINSIGSTKSZ);
9090

9191
if constexpr (guardPagesEnabled())
92-
size += 1;
92+
size += getPageSize();
9393

9494
return size;
9595
}

0 commit comments

Comments
 (0)