summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2017-05-09 08:21:16 (GMT)
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2017-05-09 08:21:16 (GMT)
commitc4814b729a950131ce143376869f7900c6c147dc (patch)
tree6abb3822a9615fc682deded95036f71cc9e548f8 /src
parentf278d734c1c02901631e04d1ac9099a4897ab75b (diff)
downloadglog-c4814b729a950131ce143376869f7900c6c147dc.zip
glog-c4814b729a950131ce143376869f7900c6c147dc.tar.gz
glog-c4814b729a950131ce143376869f7900c6c147dc.tar.bz2
symbolize: Allow 4kB stack consumption on PPC64
Diffstat (limited to 'src')
-rw-r--r--src/symbolize_unittest.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/symbolize_unittest.cc b/src/symbolize_unittest.cc
index 26616e6..bdd2f03 100644
--- a/src/symbolize_unittest.cc
+++ b/src/symbolize_unittest.cc
@@ -260,8 +260,13 @@ static const char *SymbolizeStackConsumption(void *pc, int *stack_consumed) {
return g_symbolize_result;
}
+#ifdef __ppc64__
+// Symbolize stack consumption should be within 4kB.
+const int kStackConsumptionUpperLimit = 4096;
+#else
// Symbolize stack consumption should be within 2kB.
const int kStackConsumptionUpperLimit = 2048;
+#endif
TEST(Symbolize, SymbolizeStackConsumption) {
int stack_consumed;