fix(3p/nix/libexpr): fix GC tracing in valueSize

Change-Id: I2f6bef7b090d44f50bd27fbd19b50f9cf100b238
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1506
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Kane York 2020-07-31 15:40:49 -07:00 committed by kanepyork
parent 64f6bb6951
commit ee48e830e6
2 changed files with 29 additions and 26 deletions

View file

@ -175,7 +175,7 @@ void mkPath(Value& v, const char* s);
/* Compute the size in bytes of the given value, including all values
and environments reachable from it. Static expressions (Exprs) are
not included. */
size_t valueSize(Value& v);
size_t valueSize(const Value& v);
typedef std::map<Symbol, Value*, std::less<Symbol>,
traceable_allocator<std::pair<const Symbol, Value*>>>