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

Ensure that pool owners are correctly set on pool adoption #3521

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

NickBarnes
Copy link
Contributor

Shared heap pools have an "owner" field referring to the caml_domain_state which owns them. It's NULL for free pools. We weren't setting the owner correctly sometimes when acquiring a pool from the global free list.
(This bug was harmless on the current main sources but caused a hard-to-fix bug in the new compaction #3179 for some workloads such as the test also included here).
This is @stedolan's fix.

(Plus a new compaction test for the failure triggered by getting this wrong)
@stedolan stedolan enabled auto-merge (squash) January 28, 2025 16:46
@stedolan stedolan merged commit c789fe8 into ocaml-flambda:main Jan 28, 2025
23 checks passed
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.

2 participants