[PATCH] D70332: Cherry-pick gtest fix for asan tests.
Evgenii Stepanov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 14:15:22 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG4f0b0bf5c673: Cherry-pick gtest fix for asan tests. (authored by eugenis).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D70332/new/
https://reviews.llvm.org/D70332
Files:
llvm/utils/unittest/googletest/src/gtest-death-test.cc
Index: llvm/utils/unittest/googletest/src/gtest-death-test.cc
===================================================================
--- llvm/utils/unittest/googletest/src/gtest-death-test.cc
+++ llvm/utils/unittest/googletest/src/gtest-death-test.cc
@@ -1070,7 +1070,7 @@
if (!use_fork) {
static const bool stack_grows_down = StackGrowsDown();
- const size_t stack_size = getpagesize();
+ const size_t stack_size = getpagesize() * 2;
// MMAP_ANONYMOUS is not defined on Mac, so we use MAP_ANON instead.
void* const stack = mmap(NULL, stack_size, PROT_READ | PROT_WRITE,
MAP_ANON | MAP_PRIVATE, -1, 0);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70332.230333.patch
Type: text/x-patch
Size: 656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191120/9846d042/attachment.bin>
More information about the llvm-commits
mailing list