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

concurrent collection gc #402

Open
SchrodingerZhu opened this issue May 8, 2021 · 1 comment
Open

concurrent collection gc #402

SchrodingerZhu opened this issue May 8, 2021 · 1 comment

Comments

@SchrodingerZhu
Copy link

I am wandering whether deferred_free is capable to handle concurrent GC.

My idea was to mimic epoch gc but
instead of checking the garbage pile on each access, we can defer the free operation to mimalloc and let it free the garbage removed two epochs away.

Ideally it may improve the performance but I am not sure whether it will enlarge the memory pressure.

@playXE
Copy link

playXE commented May 10, 2021

I'm working on this PR: #397 especially for this purpose. If it will get merged you could iterate your GCs mi_heap_t instance just fine to perform deferred free for lazy sweeping. If you need concurrent sweeping you do not really need deferred_free and I guess you could just walk the heap mi_heap_visit_blocks?

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

No branches or pull requests

2 participants