[all-commits] [llvm/llvm-project] f49761: [libc][rpc] Allocate locks array within process

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Wed May 10 16:42:09 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f497611f436cbf5ae0157edcf498f62a136799cb
      https://github.com/llvm/llvm-project/commit/f497611f436cbf5ae0157edcf498f62a136799cb
  Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
  Date:   2023-05-11 (Thu, 11 May 2023)

  Changed paths:
    M libc/src/__support/RPC/rpc.h
    M libc/startup/gpu/amdgpu/start.cpp
    M libc/startup/gpu/nvptx/start.cpp
    M libc/utils/gpu/loader/Server.h
    M libc/utils/gpu/loader/amdgpu/Loader.cpp
    M libc/utils/gpu/loader/nvptx/Loader.cpp

  Log Message:
  -----------
  [libc][rpc] Allocate locks array within process

Replaces the globals currently used. Worth changing to a bitmap
before allowing runtime number of ports >> 64. One bit per port is likely
to be cheap enough that sizing for the worst case is always fine, otherwise
in the future we can change to dynamically allocating it.

Reviewed By: jhuber6

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




More information about the All-commits mailing list