This commit fixes undefined reference error from libasan.so:
/lib/libasan.so: undefined reference to `lsan_check_in_progress'
occurred due to ASan runtime embeds part of LSan runtime and
misses lsan_check_in_progress symbol. To overcome the issue, just move
lsan_check_in_progress definition to lsan_common.cc.
Change-Id: I9ed7f4d490d525bbf7ce054285afaec24716f35a
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
bool lsan_inited;
bool lsan_init_is_running;
-bool lsan_check_in_progress;
namespace __lsan {
#include "sanitizer_common/sanitizer_report_decorator.h"
#if CAN_SANITIZE_LEAKS
+// TODO (chefmax): Figure out how we can avoid pollutting global namespace.
+bool lsan_check_in_progress;
+
namespace __lsan {
// This mutex is used to prevent races between DoLeakCheck and IgnoreObject, and