This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Make the thread_local g_global_boundary accessed from a single file
ClosedPublic

Authored by mstorsjo on Oct 13 2021, 11:44 PM.

Details

Summary

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.

Diff Detail

Event Timeline

mstorsjo requested review of this revision.Oct 13 2021, 11:44 PM
mstorsjo created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2021, 11:44 PM
labath accepted this revision.Oct 13 2021, 11:50 PM

Seems straight-forward enough, though I am wondering how much of this code is actually necessary given the deprecation/repurposing of reproducers.

This revision is now accepted and ready to land.Oct 13 2021, 11:50 PM