emscripten-core / emscripten-core/emscripten

Use a single allocation for a threads TLS + stack

Open
#16,948 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.