mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-03 04:37:06 -08:00
Update the gtest-1.8.0-increase-clone-stack-size.patch for gtest-9999 to reflect upstream changes Package-Manager: Portage-2.3.67, Repoman-2.3.13 Signed-off-by: Peter Levine <plevine457@gmail.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
15 lines
627 B
Diff
15 lines
627 B
Diff
Bug: https://bugs.gentoo.org/629620
|
|
Upstream PR: https://github.com/google/googletest/pull/2276
|
|
|
|
--- a/googletest/src/gtest-death-test.cc
|
|
+++ b/googletest/src/gtest-death-test.cc
|
|
@@ -1354,7 +1354,7 @@
|
|
|
|
if (!use_fork) {
|
|
static const bool stack_grows_down = StackGrowsDown();
|
|
- const auto stack_size = static_cast<size_t>(getpagesize());
|
|
+ const auto stack_size = static_cast<size_t>(getpagesize() * 8);
|
|
// MMAP_ANONYMOUS is not defined on Mac, so we use MAP_ANON instead.
|
|
void* const stack = mmap(nullptr, stack_size, PROT_READ | PROT_WRITE,
|
|
MAP_ANON | MAP_PRIVATE, -1, 0);
|