summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-08 10:06:51 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-08 10:06:51 +0000
commit0f40b49cb3a63c5613651021282eceab1650d6be (patch)
tree36d62727a7a1db27ad17698a29317351cd48e528 /libstdc++-v3/testsuite
parent22fa7e6fda4593ccffd9538ec928772f3dbbb85e (diff)
downloadppe42-gcc-0f40b49cb3a63c5613651021282eceab1650d6be.tar.gz
ppe42-gcc-0f40b49cb3a63c5613651021282eceab1650d6be.zip
* testsuite/util/testsuite_hooks.cc (set_memory_limits): Don't set
RLIMIT_AS below 16MB on x86_64-linux. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119652 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/util/testsuite_hooks.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/util/testsuite_hooks.cc b/libstdc++-v3/testsuite/util/testsuite_hooks.cc
index 40189fbf5d4..b649e9ba7d7 100644
--- a/libstdc++-v3/testsuite/util/testsuite_hooks.cc
+++ b/libstdc++-v3/testsuite/util/testsuite_hooks.cc
@@ -89,6 +89,16 @@ namespace __gnu_test
#endif
// Virtual memory.
+ // On x86_64-linux, the default is -z max-page-size=0x200000
+ // which means up to 2MB of address space are accounted for
+ // PROT_NONE mappings between text and data segments of
+ // each shared library. There are 4 shared libs involved
+ // in addition to the dynamic linker. Use at least 16MB address space
+ // limit.
+#if defined(__x86_64__) && defined(__linux__)
+ if (limit < 16777216)
+ limit = 16777216;
+#endif
// On HP-UX 11.23, a trivial C++ program that sets RLIMIT_AS to
// anything less than 128MB cannot "malloc" even 1K of memory.
// Therefore, we skip RLIMIT_AS on HP-UX.
OpenPOWER on IntegriCloud