* Use the Boehm garbage collector to reclaim unused memory in the Nix

expression evaluator.
This commit is contained in:
Eelco Dolstra
2010-10-20 11:38:30 +00:00
parent b0c11cda7e
commit e879a0371b
5 changed files with 29 additions and 15 deletions
+4 -1
View File
@@ -7,6 +7,8 @@
#include <map>
#include <gc/gc_allocator.h>
namespace nix {
@@ -16,7 +18,7 @@ struct Env;
struct Value;
struct Attr;
typedef std::map<Symbol, Attr> Bindings;
typedef std::map<Symbol, Attr, std::less<Symbol>, gc_allocator<std::pair<const Symbol, Attr> > > Bindings;
typedef enum {
@@ -313,6 +315,7 @@ private:
char * deepestStack; /* for measuring stack usage */
friend class RecursionCounter;
friend class ExprOpUpdate;
};