[all-commits] [llvm/llvm-project] 3136d6: [scudo] Remove locks from getTSDAndLockSlow (#201960)

Christopher Ferris via All-commits all-commits at lists.llvm.org
Mon Jun 8 12:09:58 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3136d62938e8cb8ac3ca735d7db741a0c0d11521
      https://github.com/llvm/llvm-project/commit/3136d62938e8cb8ac3ca735d7db741a0c0d11521
  Author: Christopher Ferris <cferris1000 at users.noreply.github.com>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/tests/combined_test.cpp
    M compiler-rt/lib/scudo/standalone/tsd_shared.h

  Log Message:
  -----------
  [scudo] Remove locks from getTSDAndLockSlow (#201960)

Change the name of getTSDAndLockSlow to getTSDLockSlow and remove all
locks in favor of using atomic variables. Continue to lock when changing
the number of shared TSDs.

This change will remove thread contention and avoid blocking between
threads when this function is called.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list