emscripten-core / emscripten-core/emscripten
Use a single allocation for a threads TLS + stack
Open
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Right now we allocate the stack on the creating thread but then call malloc within the new thread for the TLS.
This is unnecessary but also cases problems if malloc itself happens to use TLS.
musl uses one large allocation and so should we.
Contributor guide
Assessment
This issue has not been assessed yet.