[all-commits] [llvm/llvm-project] a5729b: [atomics] Initialize pthread_mutex_t and avoid fal...

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jun 4 13:07:02 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a5729b71d844c1444f7d348dc2d4ea5b98de5ec5
      https://github.com/llvm/llvm-project/commit/a5729b71d844c1444f7d348dc2d4ea5b98de5ec5
  Author: Fangrui Song <i at maskray.me>
  Date:   2024-06-04 (Tue, 04 Jun 2024)

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

  Log Message:
  -----------
  [atomics] Initialize pthread_mutex_t and avoid false sharing

PTHREAD_MUTEX_INITIALIZER is zeroes for glibc and musl, but it improves
conformance and might work with more libc implementations.

Follow-up to #94374

Pull Request: https://github.com/llvm/llvm-project/pull/94387



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