[all-commits] [llvm/llvm-project] 8dd106: [debugserver] Add platform cache support to improv...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Thu May 20 19:11:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8dd106028b1533f0de03a1ffb4ea0dce40b5a2ff
      https://github.com/llvm/llvm-project/commit/8dd106028b1533f0de03a1ffb4ea0dce40b5a2ff
  Author: kuperxu <kuperxu at qq.com>
  Date:   2021-05-20 (Thu, 20 May 2021)

  Changed paths:
    M lldb/tools/debugserver/source/MacOSX/MachProcess.h
    M lldb/tools/debugserver/source/MacOSX/MachProcess.mm

  Log Message:
  -----------
  [debugserver] Add platform cache support to improve performance.

The dyld SPI used by debugserver (_dyld_process_info_create) has become
much slower in macOS BigSur 11.3 causing a significant performance
regression when attaching. This commit mitigates that by caching the
result when calling the SPI to compute the platform.

Differential revision: https://reviews.llvm.org/D102833




More information about the All-commits mailing list