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

Horrible bug aboard #1

Open
rafalsk opened this issue Nov 16, 2022 · 1 comment
Open

Horrible bug aboard #1

rafalsk opened this issue Nov 16, 2022 · 1 comment

Comments

@rafalsk
Copy link

rafalsk commented Nov 16, 2022

hey there! I've tripple verified; the if (max_size() == size()) within insert() does its job only on the first invocation of insert(), in all the other consecutive calls (..) the values are messed (..) the cache grows indefinitely (..) now that's a bummer is it not (..)

@nitnelave
Copy link
Owner

Hmm... Do you have a reproducible snippet? What you say makes sense if "replace_oldest_entry" actually increases the size, but I don't think that's the case.

It could happen with a bad map implementation, though.

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