[llvm-commits] CVS: llvm/include/llvm/System/Program.h

Anton Korobeynikov asl at math.spbu.ru
Fri Feb 16 11:11:49 PST 2007



Changes in directory llvm/include/llvm/System:

Program.h updated: 1.13 -> 1.14
---
Log message:

Add possibility to set memory limit for binaries run via libSystem. This 
is especially needed for bugpoint. This partly implements PR688: http://llvm.org/PR688 


---
Diffs of the changes:  (+4 -0)

 Program.h |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/include/llvm/System/Program.h
diff -u llvm/include/llvm/System/Program.h:1.13 llvm/include/llvm/System/Program.h:1.14
--- llvm/include/llvm/System/Program.h:1.13	Mon Aug 21 01:00:58 2006
+++ llvm/include/llvm/System/Program.h	Fri Feb 16 13:11:06 2007
@@ -72,6 +72,10 @@
           ///< expires, the child is killed and this call returns. If zero,
           ///< this function will wait until the child finishes or forever if
           ///< it doesn't.
+        unsigned memoryLimit = 0, ///< If non-zero, this specifies max. amount
+          ///< of memory can be allocated by process. If memory usage will be
+          ///< higher limit, the child is killed and this call returns. If zero -
+          ///< no memory limit.
         std::string* ErrMsg = 0 ///< If non-zero, provides a pointer to a string
           ///< instance in which error messages will be returned. If the string 
           ///< is non-empty upon return an error occurred while invoking the






More information about the llvm-commits mailing list