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

Ensure crossbeam-epoch to run GC when dropping #20

Closed
Xudong-Huang opened this issue Nov 20, 2024 · 1 comment
Closed

Ensure crossbeam-epoch to run GC when dropping #20

Xudong-Huang opened this issue Nov 20, 2024 · 1 comment

Comments

@Xudong-Huang
Copy link

maybe this should also apply to congee since you are using crossbeam epoch
moka-rs/moka#384

@Xudong-Huang Xudong-Huang changed the title Ensure crossbeam-epoch to run GC when dropping a cache Ensure crossbeam-epoch to run GC when dropping Nov 20, 2024
@XiangpengHao
Copy link
Owner

Fixed, that's extremely helpful, thank you!

congee/src/tree.rs

Lines 74 to 77 in e2c8bdf

// see this: https://github.com/XiangpengHao/congee/issues/20
for _ in 0..128 {
crossbeam_epoch::pin().flush();
}

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