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

Can't delete Go bloom filter #61

Open
JakeAustwick opened this issue Apr 14, 2014 · 1 comment
Open

Can't delete Go bloom filter #61

JakeAustwick opened this issue Apr 14, 2014 · 1 comment

Comments

@JakeAustwick
Copy link

Is there currently no way to delete a Go bloom filter?
https://github.com/bitly/dablooms/blob/master/godablooms/dablooms.go#L44

Am I also correct in thinking this memory will never get GC'ed, because it's in C?

@mreiferson
Copy link
Contributor

Not explicitly, no. That destroy() method you linked to will execute when Go's garbage collector decides to clean up that object.

When nothing references the bloom filter pointer it will (eventually) be GCd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants