[all-commits] [llvm/llvm-project] b30f9d: [libc] Fix return value of __cxa_thread_atexit_imp...

Alexey Samsonov via All-commits all-commits at lists.llvm.org
Wed Jan 8 21:48:20 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b30f9d74d6a0f735ef597b1acae73daac2d7df39
      https://github.com/llvm/llvm-project/commit/b30f9d74d6a0f735ef597b1acae73daac2d7df39
  Author: Alexey Samsonov <vonosmas at gmail.com>
  Date:   2025-01-08 (Wed, 08 Jan 2025)

  Changed paths:
    M libc/src/__support/threads/thread.cpp

  Log Message:
  -----------
  [libc] Fix return value of __cxa_thread_atexit_impl function. (#122171)

This has been added in 0071a79532e8d664b734956a431d8c8c942cc25e to
support TLS destructors. Return value of __cxa_thread_atexit is supposed
to be the same as std::atexit - zero on success, non-zero on failure.
Update the code to do just that (also be consistent with llvm-libc's
existing atexit / at_quick_exit implementations).



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