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

I think the merged block should be removed from cache bin if it is in there, or it will be alloc twice, is it right? #3

Open
dingsp opened this issue Mar 15, 2020 · 1 comment

Comments

@dingsp
Copy link

dingsp commented Mar 15, 2020

cur = cur->merge_next();

@dingsp dingsp changed the title I think the merged block should be removed from cache bin if it is in there, or it will be alloc twice I think the merged block should be removed from cache bin if it is in there, or it will be alloc twice, is it right? Mar 15, 2020
@dingsp
Copy link
Author

dingsp commented Mar 15, 2020

Lucky! it is a double linked list , we can remove it fast.
Since the gc thread is single, we can also remove it safely.

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

1 participant