Disabled a memory check when --verify is on
The check is not complete enough to be trustworthy.
This commit is contained in:
parent
da0f3bf14a
commit
a53874d56c
1 changed files with 7 additions and 0 deletions
|
|
@ -190,8 +190,15 @@ static void trace_delete_func(void * ptr, const char * which)
|
|||
i = freed_memory->find(ptr);
|
||||
if (i != freed_memory->end())
|
||||
VERIFY(! "Freeing a block of memory twice");
|
||||
#if 0
|
||||
// There can be memory allocated by Boost or the standard library, which
|
||||
// was allocated before memory tracing got turned on, that the system
|
||||
// might free for some coincidental reason. As such, we can't rely on
|
||||
// this check being valid. I've seen cases where processes ran to
|
||||
// completion with it on, and then others where valid processes failed.
|
||||
else
|
||||
VERIFY(! "Freeing an unknown block of memory");
|
||||
#endif
|
||||
memory_tracing_active = true;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue