[PATCH] [lsan] Added __lsan_will_detect_leaks().
Sergey Matveev
earthdok at google.com
Mon Aug 19 03:14:08 PDT 2013
> does this interface play well with leak_check_at_exit runtime option?
It doesn't, but there's nothing that can be done. We can't predict whether the user is going to call __lsan_do_leak_check() or not. Then again, leak_check_at_exit is kind of a hack itself. I don't think we are obligated to support the usage mode where leak_check_at_exit=0 and the user never calls __lsan_do_leak_check(), as that situation can only arise through misuse of the tool.
http://llvm-reviews.chandlerc.com/D1421
BRANCH
feat/leak_detection_is_enabled
ARCANIST PROJECT
compiler-rt
More information about the llvm-commits
mailing list