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

Fix GC interface and collect automatically #848

Merged
merged 3 commits into from
Sep 20, 2019
Merged

Fix GC interface and collect automatically #848

merged 3 commits into from
Sep 20, 2019

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Sep 18, 2019

This re-adds a non-internal gc.collect() interface to manually issue a full garbage collection (previously one had to use internal __collect()) and adds a naive mechanism to attempt collection before growing memory. Naive because this has a flaw when allocating/deallocating around a grow boundary, but otherwise relatively efficient in that memory we have anyway is fully used before even attempting to collect, and additional pages are only obtained if absolutely necessary. Suggestions welcome :)

@dcodeIO dcodeIO merged commit bc6a944 into master Sep 20, 2019
@dcodeIO dcodeIO deleted the gc-collect branch November 8, 2019 01:59
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

Successfully merging this pull request may close these issues.

1 participant