-
-
Notifications
You must be signed in to change notification settings - Fork 12
Fix Ref Leak #162
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 Ref Leak #162
Conversation
cached_property still has the inc as well.. I thought we had a failure in production without this. I'll retest |
Sounds good. :) I just added a fix for it as well. |
downstream ci passes. So |
Thanks @Vizonex |
I'll do a release as soon as the CI passes |
Your welcome :) I should've been a lot more defensive when I was making the original pr at least it's safe for us to use now. |
Hopefully the next release fixes the bug. |
https://docs.python.org/3/c-api/call.html#c.PyObject_CallOneArg -- returns a new ref Hmm do we still have a leak if the value comes from |
It's all good. We all learn from our mistakes. |
Might be something worth testing do you know of a pytest we could add to prevent future bogus claims? |
Check this comment #159 (comment) -- It looks like they are concerned about the same issue |
... I think we want...
I think the |
I added tests |
CodSpeed Performance ReportMerging #162 will not alter performanceComparing Summary
|
Codecov Report❌ Patch coverage is
❌ Your project status has failed because the head coverage (97.35%) is below the target coverage (98.20%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #162 +/- ##
==========================================
- Coverage 97.76% 97.63% -0.14%
==========================================
Files 17 17
Lines 762 847 +85
Branches 41 44 +3
==========================================
+ Hits 745 827 +82
- Misses 9 12 +3
Partials 8 8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
codecov reporting is wrong. Its reporting on the genexpr inner code which is obviously covered |
What do these changes do?
Removing the ref counter will prevent future ref-leaking Honestly this addition was not my idea and should've never passed due to the fact that cython has it's own ref-counter-system and should be only used in the case of passing a python object to <void*> and back out again
Are there changes in behavior for the user?
Ref counters fixed means we don't end up having ref leaks ever again
Related issue number
fixes #159
Checklist