[libc-commits] [PATCH] D148293: [LIBC] Fix incorrect handling of `pthread_join(tid, nullptr)`

Noah Goldstein via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Apr 13 20:05:07 PDT 2023


goldstein.w.n created this revision.
goldstein.w.n added reviewers: michaelrj, sivachandra.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
goldstein.w.n requested review of this revision.

Previously unconditionally stored to the return value. This is
incorrect, we should only return if user value is non-null.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D148293

Files:
  libc/src/__support/threads/linux/thread.cpp
  libc/src/__support/threads/thread.h
  libc/test/integration/src/pthread/CMakeLists.txt
  libc/test/integration/src/pthread/pthread_join_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148293.513419.patch
Type: text/x-patch
Size: 6368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230414/373b6c91/attachment-0001.bin>


More information about the libc-commits mailing list