[all-commits] [llvm/llvm-project] 32be34: [scudo] Add a fast get time version.

Christopher Ferris via All-commits all-commits at lists.llvm.org
Thu Mar 9 14:13:16 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32be3405f57f1e4d0ec0da943434113450583e89
      https://github.com/llvm/llvm-project/commit/32be3405f57f1e4d0ec0da943434113450583e89
  Author: Christopher Ferris <cferris at google.com>
  Date:   2023-03-09 (Thu, 09 Mar 2023)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/common.h
    M compiler-rt/lib/scudo/standalone/fuchsia.cpp
    M compiler-rt/lib/scudo/standalone/linux.cpp
    M compiler-rt/lib/scudo/standalone/primary32.h
    M compiler-rt/lib/scudo/standalone/primary64.h
    M compiler-rt/lib/scudo/standalone/trusty.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list