You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by ab...@apache.org on 2007/06/11 22:57:54 UTC

svn commit: r546279 - in /incubator/stdcxx/trunk/etc/config: GNUmakefile.exm GNUmakefile.tst

Author: ablack
Date: Mon Jun 11 13:57:53 2007
New Revision: 546279

URL: http://svn.apache.org/viewvc?view=rev&rev=546279
Log:
2007-06-08  Andrew Black  <ab...@roguewave.com>

STDCXX-440
	* GNUmakefile.exm (RUNFLAGS): Add --ulimit:as switch to limit examples
	to allocating 256 MB of memory (total)
	* GNUmakefile.tst (RUNFLAGS): Add --ulimit:as switch to limit tests to
	allocating 1 GB of memory (total)


Modified:
    incubator/stdcxx/trunk/etc/config/GNUmakefile.exm
    incubator/stdcxx/trunk/etc/config/GNUmakefile.tst

Modified: incubator/stdcxx/trunk/etc/config/GNUmakefile.exm
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/GNUmakefile.exm?view=diff&rev=546279&r1=546278&r2=546279
==============================================================================
--- incubator/stdcxx/trunk/etc/config/GNUmakefile.exm (original)
+++ incubator/stdcxx/trunk/etc/config/GNUmakefile.exm Mon Jun 11 13:57:53 2007
@@ -21,7 +21,9 @@
 
 INCLUDES += -I$(EXMDIR)/include
 
-RUNFLAGS += -d $(EXMDIR)
+RUNFLAGS += -d $(EXMDIR) --ulimit=as:268435456
+# No example should use more than 256MB of memory (Related to STDCXX-440).
+# The magic number 268435456 is 256MB in bytes.
 
 ifneq ($(RPATH),)
   LDFLAGS += $(RPATH)$(LIBDIR)

Modified: incubator/stdcxx/trunk/etc/config/GNUmakefile.tst
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/GNUmakefile.tst?view=diff&rev=546279&r1=546278&r2=546279
==============================================================================
--- incubator/stdcxx/trunk/etc/config/GNUmakefile.tst (original)
+++ incubator/stdcxx/trunk/etc/config/GNUmakefile.tst Mon Jun 11 13:57:53 2007
@@ -70,7 +70,9 @@
   LDFLAGS += $(RPATH)$(LIBDIR):$(BUILDDIR)/rwtest
 endif
 
-RUNFLAGS += --compat -x "--compat -O -"
+RUNFLAGS += --compat -x "--compat -O -" --ulimit=as:1073741824
+# No test should use more than 1 GB of memory (See STDCXX-440).
+# The magic number 1073741824 is 1 GB in bytes.
 
 ##############################################################################
 #  TARGETS