Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename __prepare_for_exit to __wasm_call_dtors. #201

Merged
merged 1 commit into from
Jun 8, 2020

Conversation

sunfishcode
Copy link
Member

This emphasizes the relationship with __wasm_call_ctors. Note however
that while __wasm_call_ctors is synthesized by the linker,
__wasm_call_dtors is still defined by libc.

Static constructors are registered statically, but static destructors
need to be registered dynamically so that they only run if their
corresponding static constructors have run, and so that they're
ordered with respect to interleaved atexit calls.

This emphasizes the relationship with `__wasm_call_ctors`. Note however
that while `__wasm_call_ctors` is synthesized by the linker,
`__wasm_call_dtors` is still defined by libc.

Static constructors are registered statically, but static destructors
need to be registered dynamically so that they only run if their
corresponding static constructors have run, and so that they're
ordered with respect to interleaved `atexit` calls.
@sunfishcode sunfishcode merged commit 4e45d2b into master Jun 8, 2020
@sunfishcode sunfishcode deleted the wasm-call-dtors branch June 8, 2020 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants