[all-commits] [llvm/llvm-project] b653a2: Declare _availability_version_check as weak_import...

Akira Hatanaka via All-commits all-commits at lists.llvm.org
Thu May 11 17:23:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b653a2823fe4b4c9c6d85cfe119f31d8e70c2fa0
      https://github.com/llvm/llvm-project/commit/b653a2823fe4b4c9c6d85cfe119f31d8e70c2fa0
  Author: Akira Hatanaka <ahatanaka at apple.com>
  Date:   2023-05-11 (Thu, 11 May 2023)

  Changed paths:
    M compiler-rt/lib/builtins/os_version_check.c

  Log Message:
  -----------
  Declare _availability_version_check as weak_import instead of looking it
up at runtime using dlsym

Calling dlsym with RTLD_DEFAULT can be very slow as all images in the
process are searched for the symbol.

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




More information about the All-commits mailing list