Skip to content

Add comments clarifying domain/finaliser guarantees #3938

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NickBarnes
Copy link
Contributor

It has always been true, in multicore OCaml, that finalisers are run by the domain which registered them, unless that domain has terminated in which case they are adopted by some other domain. This is important for mode safety (as values captured by a finaliser closure may otherwise escape to some other domain), so we're should document it in the .mli.

Copy link
Contributor

@tdelvecchio-jsc tdelvecchio-jsc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks for verifying this! (Feel free to r/primary domain/initial domain/ in the comments you edited, or just merge as is.)

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants