[all-commits] [llvm/llvm-project] f1bb30: [sanitizer] No THREADLOCAL in qsort and bsearch

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu Aug 26 16:55:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1bb30a4956f83e46406d6082e5d376ce65391e0
      https://github.com/llvm/llvm-project/commit/f1bb30a4956f83e46406d6082e5d376ce65391e0
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2021-08-26 (Thu, 26 Aug 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc

  Log Message:
  -----------
  [sanitizer] No THREADLOCAL in qsort and bsearch

qsort can reuse qsort_r if available.
bsearch always passes key as the first comparator argument, so we
can use it to wrap the original comparator.

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




More information about the All-commits mailing list