Skip to content

Manual: caution about custom block finalizers#13045

Merged
damiendoligez merged 2 commits into
ocaml:trunkfrom
NickBarnes:nick-12820-custom-finalize-man
Apr 3, 2024
Merged

Manual: caution about custom block finalizers#13045
damiendoligez merged 2 commits into
ocaml:trunkfrom
NickBarnes:nick-12820-custom-finalize-man

Conversation

@NickBarnes

@NickBarnes NickBarnes commented Mar 22, 2024

Copy link
Copy Markdown
Contributor

Small change to the manual emphasizing the existing warning about behaviour of custom block finalizers. Fixes #12820, in the sense that the problem there was caused by a finalizer calling caml_enter_blocking_section().

[edited to remove question answered by @shindere in comments]

@shindere

shindere commented Mar 22, 2024 via email

Copy link
Copy Markdown
Contributor

@OlivierNicole OlivierNicole left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Disclaimer: I don’t know much about finalisers, but the addition seems to be simply a forward reference (with some useful repetition) to a later paragraph, so I believe this is accurate.

@NickBarnes NickBarnes force-pushed the nick-12820-custom-finalize-man branch from de78c92 to 07c478c Compare April 3, 2024 13:57
@damiendoligez damiendoligez self-assigned this Apr 3, 2024
@damiendoligez

Copy link
Copy Markdown
Member

The CI failure is obviously not related to this PR. Merging.

@damiendoligez damiendoligez merged commit 587e9a2 into ocaml:trunk Apr 3, 2024
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.

Infinite loop in Gc.compact

4 participants