feat(3p/nix): Add function to allocate a Value in traceable memory
Backported from:b3e5eea4a9fcd048a526Intentionally skipped because we have not backported the JSON changes:9f46f54de4Did not apply changes ni primops.cc, because those look suspect and are also based on something that we don't have in our tree. Change-Id: I837787ce9f2c90267bc39fce15177980d209d4e9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1253 Tested-by: BuildkiteCI Reviewed-by: isomer <isomer@tvl.fyi>
This commit is contained in:
parent
014436eb4a
commit
80eaa1eaf9
5 changed files with 19 additions and 10 deletions
2
third_party/nix/src/libexpr/value.hh
vendored
2
third_party/nix/src/libexpr/value.hh
vendored
|
|
@ -247,4 +247,6 @@ typedef std::map<Symbol, Value*, std::less<Symbol>,
|
|||
traceable_allocator<std::pair<const Symbol, Value*>>>
|
||||
ValueMap;
|
||||
|
||||
std::shared_ptr<Value*> allocRootValue(Value* v);
|
||||
|
||||
} // namespace nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue