Add environment variable NANO_MEMORY_INTENSIVE to explicitly enable/disable the memory_intensive_instrumentation check. (#4640)
running_within_valgrind doesn't always play well with arm and there may be other reasons to enable/disable this option.
This commit is contained in:
parent
e9adb744b8
commit
c16f020af4
1 changed files with 5 additions and 0 deletions
|
@ -253,6 +253,11 @@ bool running_within_valgrind ()
|
|||
|
||||
bool memory_intensive_instrumentation ()
|
||||
{
|
||||
auto env = nano::env::get<bool> ("NANO_MEMORY_INTENSIVE");
|
||||
if (env)
|
||||
{
|
||||
return env.value ();
|
||||
}
|
||||
return is_tsan_build () || nano::running_within_valgrind ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue