Skip to content

Conversation

@1stub
Copy link
Collaborator

@1stub 1stub commented Nov 19, 2025

This fixes a bit of an oversight I had with triggering collections. As the allocator may be reusing pages with old objects hanging around, it is possible for pages with up to 60% utilization being grabbed for allocations. This means (with my previous approach) we technically could trigger a collection with only 40% of the nursery full.

So, instead of just incrementing a counter when we need a new allocation page, we now determine how much of the alloc_page was just used for allocation, then determine whether we need to collect using this approximate usage.

@1stub 1stub requested a review from marron-at-work November 19, 2025 20:14
@1stub 1stub merged commit 19d594c into BosqueLanguage:main Nov 19, 2025
1 check passed
@1stub 1stub deleted the 11_19_filled_nursery branch November 19, 2025 20:34
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