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

Made pool reuse a queue #612

Merged
merged 3 commits into from
Apr 26, 2023
Merged

Made pool reuse a queue #612

merged 3 commits into from
Apr 26, 2023

Conversation

mjp41
Copy link
Member

@mjp41 mjp41 commented Apr 25, 2023

So allocator churn will cause remote queues to be visited.

Copy link
Contributor

@nwf-msr nwf-msr left a comment

Choose a reason for hiding this comment

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

Nits, but it sounds like a good plan to me.

PoolState<T>& pool = get_state();
last->next = nullptr;
FlagLock f(pool.lock);
// Pushes a linked list of objects onto the stack. Used to put a linked
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably just drop this comment, given the doxygen comment on the method?

src/snmalloc/mem/pool.h Outdated Show resolved Hide resolved
So allocator churn will cause remote queues to be visited.
@mjp41 mjp41 merged commit 7b3a2b3 into microsoft:main Apr 26, 2023
@mjp41 mjp41 deleted the allocator_queue branch April 26, 2023 14:08
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