[all-commits] [llvm/llvm-project] 779a44: [libc] fix tls teardown while being used (#108229)

Schrodinger ZHU Yifan via All-commits all-commits at lists.llvm.org
Wed Sep 11 09:22:57 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 779a444009da190c47a2f820395ca001abc29b62
      https://github.com/llvm/llvm-project/commit/779a444009da190c47a2f820395ca001abc29b62
  Author: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
  Date:   2024-09-11 (Wed, 11 Sep 2024)

  Changed paths:
    M libc/src/stdlib/atexit.cpp
    M libc/src/stdlib/quick_exit.cpp
    M libc/startup/linux/do_start.cpp

  Log Message:
  -----------
  [libc] fix tls teardown while being used (#108229)

The call chain to `Mutex:lock` can be polluted by stack protector. For
completely safe, let's postpone the main TLS tearing down to a separate
phase.

fix #108030



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