diff options
author | Sverker Eriksson <[email protected]> | 2013-10-17 15:25:52 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2013-11-04 17:13:08 +0100 |
commit | e94f730bdda9137ce5f436256ac7fdbdcd0be14a (patch) | |
tree | 6f94b765b35b1c3feee0eae25ec8796ae5f76003 | |
parent | 20641fe0f2ea745873fc7557448d3a7deb1bd639 (diff) | |
download | otp-e94f730bdda9137ce5f436256ac7fdbdcd0be14a.tar.gz otp-e94f730bdda9137ce5f436256ac7fdbdcd0be14a.tar.bz2 otp-e94f730bdda9137ce5f436256ac7fdbdcd0be14a.zip |
erts: Prevent valgrind from repeating same memory leaks reports
by using the macro VALGRIND_DO_ADDED_LEAK_CHECK if it exists
for system_info({error_checker,memory})
-rwxr-xr-x | erts/emulator/beam/erl_bif_info.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c index 673dfc658c..6479320a83 100755 --- a/erts/emulator/beam/erl_bif_info.c +++ b/erts/emulator/beam/erl_bif_info.c @@ -1771,7 +1771,11 @@ info_1_tuple(Process* BIF_P, /* Pointer to current process. */ #if defined(PURIFY) BIF_RET(erts_make_integer(purify_new_leaks(), BIF_P)); #elif defined(VALGRIND) +# ifdef VALGRIND_DO_ADDED_LEAK_CHECK + VALGRIND_DO_ADDED_LEAK_CHECK; +# else VALGRIND_DO_LEAK_CHECK; +# endif BIF_RET(make_small(0)); #endif } else if (*tp == am_fd) { |