[PATCH] D40679: [sanitizer] Introduce a vDSO aware time function, and use it in the allocator [redo]
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 11:34:22 PST 2017
krytarowski added inline comments.
================
Comment at: lib/sanitizer_common/sanitizer_linux_libcdep.cc:690
+ } else {
+ internal_clock_gettime(CLOCK_MONOTONIC, &ts);
+ }
----------------
alekseyshl wrote:
> 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.
I have got a simple local Scudo/NetBSD port, however I need to port tests to !GLIBC in order to make sure that it works reliably.
There is no vDSO as of now on NetBSD and no quick alternative.
https://reviews.llvm.org/D40679
More information about the llvm-commits
mailing list