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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/sanitizer_common/sanitizer_mac.cc | ||
---|---|---|
367 | Actually, this is racy unless we guarantee NanoTime is called during initialization... |
Comment Actions
FYI, D40679 adds MonotonicNanoTime() for that NanoTime() is too expensive for the allocator's purposes.
Comment Actions
Hey @kubamracek, checking in to see if you are planning on committing this, we could use the functions. Thanks!
Actually, this is racy unless we guarantee NanoTime is called during initialization...