[PATCH] D53528: [sanitizer] Avoid calling a nullptr in MonotonicNanoTime if interceptors are not yet initialized

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 23 09:12:00 PDT 2018


cryptoad added a comment.

In https://reviews.llvm.org/D53528#1272592, @kubamracek wrote:

> The problem I'm seeing is when real_clock_gettime does exist, but it's not yet initialized, see the backtrace posted earlier. I'm not sure how performance sensitive this area is: Is it used elsewhere other than the memory allocator?


MonotonicNanoTime is hot for Scudo (which is performance sensitive), which is the reason for the ugly vDSO check. But yeah that should work.


https://reviews.llvm.org/D53528





More information about the llvm-commits mailing list