Commit 5c13b77c by Benjamin Kosnik Committed by Benjamin Kosnik

testsuite_hooks.cc (set_memory_limits): Adjust x86_64 virtual memory setting for libgomp.

2007-09-27  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/util/testsuite_hooks.cc (set_memory_limits): Adjust
	x86_64 virtual memory setting for libgomp.

From-SVN: r128842
parent b2a00c89
2007-09-27 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/util/testsuite_hooks.cc (set_memory_limits): Adjust
x86_64 virtual memory setting for libgomp.
2007-09-26 Benjamin Kosnik <bkoz@redhat.com> 2007-09-26 Benjamin Kosnik <bkoz@redhat.com>
* include/bits/stl_algo.h: Add return type information to comments. * include/bits/stl_algo.h: Add return type information to comments.
......
...@@ -92,17 +92,17 @@ namespace __gnu_test ...@@ -92,17 +92,17 @@ namespace __gnu_test
setrlimit(RLIMIT_VMEM, &r); setrlimit(RLIMIT_VMEM, &r);
#endif #endif
// Virtual memory. // Virtual memory. On x86_64-linux, the default is -z
// On x86_64-linux, the default is -z max-page-size=0x200000 // max-page-size=0x200000 which means up to 2MB of address space
// which means up to 2MB of address space are accounted for // are accounted for PROT_NONE mappings between text and data
// PROT_NONE mappings between text and data segments of // segments of each shared library. There are 4 shared libs
// each shared library. There are 4 shared libs involved // involved in addition to the dynamic linker, maybe 5 if libgomp
// in addition to the dynamic linker. Use at least 16MB address space // is being used as well. Use at least 20MB address space limit.
// limit.
#if defined(__x86_64__) && defined(__linux__) #if defined(__x86_64__) && defined(__linux__)
if (limit < 16777216) if (limit < 20971520)
limit = 16777216; limit = 20971520;
#endif #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