emscripten-core / emscripten-core/emscripten

Unify notion of runtime "aliveness"

Open
#25,076 2 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

Currently we have 3 different ways to tell in JS current runtime is alive.

- `ABORT` which gets set from the `abort()` function. When this is true the runtime should be considered dead.
- `runtimeExited`, which which is set when the runtime is shut down. This not always available (for example with `MINIMAL_RUNTIME` + `EXIT_RUNTIME=0`
- A pthread work runtime is considered dead if it is not hosting a pthread i.e. `pthread_self()` returns 0.

We should try to unify these.

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.