Commit 5fecd266 by Jakub Jelinek Committed by Jakub Jelinek

testsuite_hooks.cc (set_memory_limits): Don't set RLIMIT_AS below 16MB on x86_64-linux.

	* testsuite/util/testsuite_hooks.cc (set_memory_limits): Don't set
	RLIMIT_AS below 16MB on x86_64-linux.

From-SVN: r119652
parent c3240b8d
2006-12-08 Jakub Jelinek <jakub@redhat.com>
* testsuite/util/testsuite_hooks.cc (set_memory_limits): Don't set
RLIMIT_AS below 16MB on x86_64-linux.
2006-12-06 Benjamin Kosnik <bkoz@redhat.com> 2006-12-06 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am (std_headers_rename): Remove. * include/Makefile.am (std_headers_rename): Remove.
......
...@@ -89,6 +89,16 @@ namespace __gnu_test ...@@ -89,6 +89,16 @@ namespace __gnu_test
#endif #endif
// Virtual memory. // 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 // On HP-UX 11.23, a trivial C++ program that sets RLIMIT_AS to
// anything less than 128MB cannot "malloc" even 1K of memory. // anything less than 128MB cannot "malloc" even 1K of memory.
// Therefore, we skip RLIMIT_AS on HP-UX. // Therefore, we skip RLIMIT_AS on HP-UX.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment