[llvm] r176862 - In r169695, the address space limit for tests was replaced with a data

Patrik Hagglund patrik.h.hagglund at ericsson.com
Tue Mar 12 05:38:10 PDT 2013


Author: patha
Date: Tue Mar 12 07:38:10 2013
New Revision: 176862

URL: http://llvm.org/viewvc/llvm-project?rev=176862&view=rev
Log:
In r169695, the address space limit for tests was replaced with a data
segment limit. Now, as a complement, add a stack space limit.

Otherwise, tests may grow undesirable large at inifinite
recursion. (Seen at r176838,
test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll)

Modified:
    llvm/trunk/test/Makefile

Modified: llvm/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Makefile?rev=176862&r1=176861&r2=176862&view=diff
==============================================================================
--- llvm/trunk/test/Makefile (original)
+++ llvm/trunk/test/Makefile Tue Mar 12 07:38:10 2013
@@ -75,8 +75,9 @@ ULIMIT=ulimit -t 600 ; ulimit -d 512000
 else # !AuroraUX
 # Newer versions of python try to allocate an insane amount of address space for
 # its thread-local storage, don't set a limit here.
+# When -v is not used, then -s has to be used to limit the stack size.
 # FIXME: Those limits should be enforced by lit instead of globally.
-ULIMIT=ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ;
+ULIMIT=ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -s 8192 ;
 endif # AuroraUX
 endif # SunOS
 





More information about the llvm-commits mailing list