stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abl...@apache.org
Subject svn commit: r546279 - in /incubator/stdcxx/trunk/etc/config: GNUmakefile.exm GNUmakefile.tst
Date Mon, 11 Jun 2007 20:57:54 GMT
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  <ablack@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



Mime
View raw message