Skip to content

Refactor update_major_slice_work and major GC work units #3628

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

Merged
merged 2 commits into from
Mar 4, 2025

Conversation

stedolan
Copy link
Contributor

  • Rearrange code in this function to separate computation of allocations done from computation of next slice work budget, to more easily replace the latter

  • Better log messages from slice computation

  • Separate units of marking and sweeping work, and add unit conversions

  • Rename 'work_counter' and 'alloc_counter'

  - Rearrange code in this function to separate computation of allocations done
    from computation of next slice work budget, to more easily replace the latter

  - Better log messages from slice computation

  - Separate units of marking and sweeping work, and add unit conversions

  - Rename 'work_counter' and 'alloc_counter'
Copy link
Contributor

@NickBarnes NickBarnes left a comment

Choose a reason for hiding this comment

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

LGTM. Good to separate the notions of sweep work and mark work (hmm, could use the type system for that). A couple of suggestions, mostly naming. As anticipated, this will mean I have to rework #3587 when rebasing, but of course I'm not going to do that until after your next PR.

@stedolan stedolan merged commit fb3b767 into oxcaml:main Mar 4, 2025
22 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