diff options
author | Kane York <kanepyork@gmail.com> | 2020-07-31T22·40-0700 |
---|---|---|
committer | kanepyork <rikingcoding@gmail.com> | 2020-08-01T18·54+0000 |
commit | ee48e830e67ff53097f76ee2bde9ff60caf0dce7 (patch) | |
tree | a81ecb945a4dc41640afaa3892f5988b01c98dc8 /third_party/nix/src/libexpr/value.hh | |
parent | 64f6bb695130e14bb376fa52a46c716c975020a4 (diff) |
fix(3p/nix/libexpr): fix GC tracing in valueSize r/1528
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>
Diffstat (limited to 'third_party/nix/src/libexpr/value.hh')
-rw-r--r-- | third_party/nix/src/libexpr/value.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/nix/src/libexpr/value.hh b/third_party/nix/src/libexpr/value.hh index 5d5785ebeb0f..17bf213a317f 100644 --- a/third_party/nix/src/libexpr/value.hh +++ b/third_party/nix/src/libexpr/value.hh @@ -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*>>> |