Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants