[scudo] Add a fast get time version.
authorChristopher Ferris <cferris@google.com>
Thu, 9 Mar 2023 00:56:24 +0000 (16:56 -0800)
committerChristopher Ferris <cferris@google.com>
Thu, 9 Mar 2023 22:12:53 +0000 (14:12 -0800)
commit32be3405f57f1e4d0ec0da943434113450583e89
tree989c0b248b43c0f7a7d7f55c00f5db90dd0083f7
parent82e177bbde888f1dd846359a9d05665591488275
[scudo] Add a fast get time version.

On Android, the _COARSE version of clock_gettime is about twice as fast.
Therefore, add a getMonotonicTimeFast function that is used in the
releaseToOSMaybe functions.

Reviewed By: Chia-hungDuan

Differential Revision: https://reviews.llvm.org/D145636
compiler-rt/lib/scudo/standalone/common.h
compiler-rt/lib/scudo/standalone/fuchsia.cpp
compiler-rt/lib/scudo/standalone/linux.cpp
compiler-rt/lib/scudo/standalone/primary32.h
compiler-rt/lib/scudo/standalone/primary64.h
compiler-rt/lib/scudo/standalone/trusty.cpp