[all-commits] [llvm/llvm-project] 379428: [libc] Linux threads - store a ptr to the thread a...

Siva Chandra via All-commits all-commits at lists.llvm.org
Sat Jul 9 22:07:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 379428c2ac42fd3bd9bd2bf39f226dd6438e72ff
      https://github.com/llvm/llvm-project/commit/379428c2ac42fd3bd9bd2bf39f226dd6438e72ff
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2022-07-10 (Sun, 10 Jul 2022)

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

  Log Message:
  -----------
  [libc] Linux threads - store a ptr to the thread attribs in the start args.

Previosly, a pointer to the thread data structure was stored in the
start args. However, the thread data structure need not have the
lifetime of the thread. On the the other hand, thread attributes are
stored on the thread stack so they live as long as the thread lives.




More information about the All-commits mailing list