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:
parent
64f6bb6951
commit
ee48e830e6
2 changed files with 29 additions and 26 deletions
2
third_party/nix/src/libexpr/value.hh
vendored
2
third_party/nix/src/libexpr/value.hh
vendored
|
|
@ -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*>>>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue