[all-commits] [llvm/llvm-project] 7106f5: [lldb] Make the thread_local g_global_boundary acc...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Thu Oct 14 01:20:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7106f588567b59acb17c77f6116ba433b6226333
      https://github.com/llvm/llvm-project/commit/7106f588567b59acb17c77f6116ba433b6226333
  Author: Martin Storsjö <martin at martin.st>
  Date:   2021-10-14 (Thu, 14 Oct 2021)

  Changed paths:
    M lldb/include/lldb/Utility/ReproducerInstrumentation.h
    M lldb/source/Utility/ReproducerInstrumentation.cpp

  Log Message:
  -----------
  [lldb] Make the thread_local g_global_boundary accessed from a single file

This makes the compiler generated code for accessing the thread local
variable much simpler (no need for wrapper functions and weak pointers
to potential init functions), and can avoid toolchain bugs regarding how
to access TLS variables.

In particular, this fixes LLDB when built with current GCC/binutils for
MinGW, see https://github.com/msys2/MINGW-packages/issues/8868.

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




More information about the All-commits mailing list