[all-commits] [llvm/llvm-project] efa94c: [Support/rpmalloc] Updated fake atomics with Inter...

Dmitry Vasilyev via All-commits all-commits at lists.llvm.org
Tue Jul 15 11:42:48 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: efa94cf703a510083f411444650f3a8d21dfcfee
      https://github.com/llvm/llvm-project/commit/efa94cf703a510083f411444650f3a8d21dfcfee
  Author: Dmitry Vasilyev <dvassiliev at accesssoftek.com>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    M llvm/lib/Support/rpmalloc/rpmalloc.c

  Log Message:
  -----------
  [Support/rpmalloc] Updated fake atomics with Interlocked functions (#148303)

Most atomic functions used Interlocked functions in case of MSVC (since MSVC does not do C11 yet).
But few load/store functions are dummy.
Use Interlocked functions for these atomics to ensure they are thread-safe.

This PR fixes #146205.

LLVM is on VS 2019 version 16.7 currently and eventually we require VS 2022 if we wanted to use stdatomics in rpmalloc, etc. In the meanwhile, we use the Interlocked intrinsics when building with MSVC.



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