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

Slab alloc threadcache #324

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dsm9000
Copy link
Contributor

@dsm9000 dsm9000 commented Oct 20, 2023

This is a skeleton of the GC thread cache ( #269 )

To become useful, it still needs:

  • Bulk alloc of slab slots in the refiller (done)
  • Sort on "closest to vacant slab state" prior to eviction when flushing
  • Tests.
  • Possibly, other corrections.

The cache bins are double-ended queues. The rationale for this:

@dsm9000 dsm9000 force-pushed the slab_alloc_threadcache branch 3 times, most recently from abb87ec to b34d9a1 Compare October 20, 2023 21:43
sdlib/d/gc/tcache.d Outdated Show resolved Hide resolved
sdlib/d/gc/tcache.d Outdated Show resolved Hide resolved
sdlib/d/gc/tcache.d Outdated Show resolved Hide resolved
@dsm9000 dsm9000 force-pushed the slab_alloc_threadcache branch 7 times, most recently from 2dd2252 to 6ae233a Compare October 21, 2023 17:19
@dsm9000 dsm9000 marked this pull request as ready for review October 21, 2023 17:20
@dsm9000 dsm9000 force-pushed the slab_alloc_threadcache branch 15 times, most recently from 8031fd5 to a6d0722 Compare October 22, 2023 00:40
@dsm9000 dsm9000 marked this pull request as draft October 22, 2023 00:53
@dsm9000 dsm9000 force-pushed the slab_alloc_threadcache branch from a6d0722 to ae2d026 Compare October 22, 2023 04:37
@dsm9000 dsm9000 marked this pull request as ready for review October 22, 2023 04:38
@dsm9000 dsm9000 force-pushed the slab_alloc_threadcache branch 3 times, most recently from 3eaf37f to 12b1f28 Compare October 22, 2023 18:15
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.

1 participant