8000 Remove caml_get_header_val, as not needed. by NickBarnes · Pull Request #4189 · oxcaml/oxcaml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove caml_get_header_val, as not needed. #4189

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

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

Conversation

NickBarnes
Copy link
Contributor

This arose during review of #3493 : caml_get_header_val only differs from Hd_val in that it will spin if it sees an in-progress header, i.e. if some domain is in the process of promoting the block. This can only happen between the barriers of a minor collection; there are very few places outside minor_gc.c where it might be possible, and certainly not while updating finalizer data structures after a minor GC.

@stedolan
Copy link
Contributor

I think by the same reasoning, it would be more correct for custom_finalize_minor to use Hd_val directly rather than get_header_val

@NickBarnes
Copy link
Contributor Author

Yes, also dependent_accounting_minor. I'll do that.

@NickBarnes NickBarnes force-pushed the remove_get_header_val branch from 08e8bf3 to 567d6e3 Compare June 26, 2025 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0