[PATCH] D40679: [sanitizer] Introduce a vDSO aware time function, and use it in the allocator [redo]
Aleksey Shlyapnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 11:26:36 PST 2017
alekseyshl added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_linux_libcdep.cc:690
+ } else {
+ internal_clock_gettime(CLOCK_MONOTONIC, &ts);
+ }
----------------
cryptoad wrote:
> alekseyshl wrote:
> > Does it mean that our allocator is going to be slow on BSD? Should we turn release to OS off by default there then?
> Currently BSD doesn't have Scudo, I am not sure it's a big deal for the *San allocators.
Ok then, what's a proper BSD way to get time fast? Is there an alternative to syscall? It's a question to BSD folks, indeed.
https://reviews.llvm.org/D40679
More information about the llvm-commits
mailing list