mirror of
https://github.com/NixOS/nix
synced 2025-06-26 07:31:15 +02:00
Remove canary stuff
This commit is contained in:
parent
a144eb1415
commit
8aedaf111e
4 changed files with 0 additions and 58 deletions
|
@ -247,7 +247,6 @@ EvalState::EvalState(const Strings & _searchPath)
|
|||
EvalState::~EvalState()
|
||||
{
|
||||
fileEvalCache.clear();
|
||||
printCanaries();
|
||||
}
|
||||
|
||||
|
||||
|
@ -1514,26 +1513,6 @@ void EvalState::printStats()
|
|||
}
|
||||
|
||||
|
||||
void EvalState::printCanaries()
|
||||
{
|
||||
#if HAVE_BOEHMGC
|
||||
if (!settings.get("debug-gc", false)) return;
|
||||
|
||||
GC_gcollect();
|
||||
|
||||
if (gcCanaries.empty()) {
|
||||
printMsg(lvlError, "all canaries have been garbage-collected");
|
||||
return;
|
||||
}
|
||||
|
||||
printMsg(lvlError, "the following canaries have not been garbage-collected:");
|
||||
|
||||
for (auto i : gcCanaries)
|
||||
printMsg(lvlError, format(" %1%") % i->string.s);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
size_t valueSize(Value & v)
|
||||
{
|
||||
std::set<const void *> seen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue