Skip to content

Run TLS destructors for wasm32-wasip1-threads#133472

Merged
bors merged 4 commits intorust-lang:masterfrom
rust-wasi-web:master
Dec 10, 2024
Merged

Run TLS destructors for wasm32-wasip1-threads#133472
bors merged 4 commits intorust-lang:masterfrom
rust-wasi-web:master

Conversation

@surban
Copy link
Copy Markdown
Contributor

@surban surban commented Nov 25, 2024

The target wasm32-wasip1-threads has support for pthreads and allows registration of TLS destructors.

For spawned threads, this registers Rust TLS destructors by creating a pthreads key with an attached destructor function.
For the main thread, this registers an atexit handler to run the TLS destructors.

try-job: test-various

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants