[sanitizer] Implement NanoTime() on Darwin
authorKuba Mracek <mracek@apple.com>
Sun, 11 Feb 2018 19:25:34 +0000 (19:25 +0000)
committerKuba Mracek <mracek@apple.com>
Sun, 11 Feb 2018 19:25:34 +0000 (19:25 +0000)
commit3eb694d01efad71b579e35fe50d7327d259f9f53
tree3944e558fed899024ec43f3fe44ff14205895146
parent3ecf9dcaf4877994903d15694c87778cc2fe94cb
[sanitizer] Implement NanoTime() on Darwin

Currently NanoTime() on Darwin is unimplemented and always returns 0. Looks like there's quite a few things broken because of that (TSan periodic memory flush, ASan allocator releasing pages back to the OS). Let's fix that.

Differential Revision: https://reviews.llvm.org/D40665

llvm-svn: 324847
compiler-rt/lib/sanitizer_common/sanitizer_mac.cc