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

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Apr 20 00:45:10 PDT 2023


sivachandra added a comment.

Sorry for more work, but this change is required for proper functioning of https://reviews.llvm.org/D148291, which has already landed. So, can you just prepare patch for the `nullptr` handling and not make it depend on the attributes patch? Or, make the tests in the patch not use the detach functionality. Either way, we should land this patch with some urgency.



================
Comment at: libc/test/integration/src/pthread/pthread_join_test.cpp:57
+    unsigned rval;
+    ASSERT_EQ(__llvm_libc::getrandom(&rval, sizeof(rval), 0),
+              static_cast<ssize_t>(sizeof(rval)));
----------------
We should not use randomized inputs/data in unit tests because we want them to be reproducible.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D148293



More information about the libc-commits mailing list