Instead, memory is allocated and deallocated using mmap and munmap
syscalls directly.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
| Paths 
 |  Differential  D122876  
[libc][NFC] Do not call mmap and munmap from thread functions. ClosedPublic Authored by sivachandra on Apr 1 2022, 12:38 AM. 
Details Summary Instead, memory is allocated and deallocated using mmap and munmap 
Diff Detail 
 Event TimelineHerald added projects: Restricted Project, Restricted Project.  ·  View Herald TranscriptApr 1 2022, 12:38 AM This revision is now accepted and ready to land.Apr 1 2022, 9:45 AM Closed by commit rG6a7cd4a1df6c: [libc][NFC] Do not call mmap and munmap from thread functions. (authored by sivachandra).  ·  Explain WhyApr 1 2022, 10:12 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 419932 libc/src/threads/linux/CMakeLists.txt
 libc/src/threads/linux/thrd_create.cpp
 libc/src/threads/linux/thrd_join.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||