[libc-commits] [PATCH] D75818: [libc] Take 2: Add linux implementations of thrd_create and thrd_join functions.
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Sat Mar 7 15:41:25 PST 2020
sivachandra created this revision.
sivachandra added reviewers: abrachet, phosek.
Herald added subscribers: libc-commits, tschuett, jfb, MaskRay, mgorny.
Herald added a project: libc-project.
The following are the differences from the first version:
1. The kernel does not copy the stack for the new thread (it cannot).
The previous version missed this fact. In this new version, the new
thread's start args are copied on to the new stack in a known location
so that the new thread can sniff them out.
2. A start args sniffer for x86_64 has been added.
3. Default stack size has been increased to 64KB.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75818
Files:
libc/cmake/modules/LLVMLibCRules.cmake
libc/config/linux/api.td
libc/config/linux/threads.h.in
libc/include/CMakeLists.txt
libc/include/threads.h.def
libc/lib/CMakeLists.txt
libc/src/CMakeLists.txt
libc/src/threads/CMakeLists.txt
libc/src/threads/linux/CMakeLists.txt
libc/src/threads/linux/thrd_create.cpp
libc/src/threads/linux/thrd_join.cpp
libc/src/threads/linux/thread_start_args.h.def
libc/src/threads/linux/thread_utils.h
libc/src/threads/linux/x86_64/thread_start_args.h.in
libc/src/threads/thrd_create.h
libc/src/threads/thrd_join.h
libc/test/src/CMakeLists.txt
libc/test/src/threads/CMakeLists.txt
libc/test/src/threads/thrd_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75818.248968.patch
Type: text/x-patch
Size: 18885 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200307/8ce3496d/attachment-0001.bin>
More information about the libc-commits
mailing list