[PATCH] D142317: [Support][LLD] Avoid using uninitialized threadIndex.

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 06:50:10 PST 2023


peter.smith added a comment.

In D142317#4073423 <https://reviews.llvm.org/D142317#4073423>, @andrewng wrote:

> Perhaps I'm missing something here, but I thought that `thread_local` variables are zero initialized.

That is my understanding too. An unitialized TLS variable is assigned to .tbss which is the TLS equivalent of .bss.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142317/new/

https://reviews.llvm.org/D142317



More information about the llvm-commits mailing list