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

Eliminate reference cycles to improve Ctx cleanup #249

Merged
merged 2 commits into from
Dec 11, 2019
Merged

Conversation

ihnorton
Copy link
Member

@ihnorton ihnorton commented Dec 11, 2019

In #247 @bkmartinjr demonstrated thread-count oversubscription caused by delayed Array destruction (thus, Ctx deallocation), due to internal reference cycles. These cycles can eventually be freed by the Python GC, but the GC does not run sufficiently often to prevent the issue.

For example, due to reference cycle preventing immediate Array
deallocation (see following commit).

  x-ref: #247
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