| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@dmitriyse, thanks! @vmuriart, @tonyroberts, @hsoft, @cgohlke and @tiran, please review this. |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master #532 +/- ##
==========================================
+ Coverage 76.99% 77.03% +0.03%
==========================================
Files 64 65 +1
Lines 5612 5747 +135
Branches 888 911 +23
==========================================
+ Hits 4321 4427 +106
- Misses 1002 1016 +14
- Partials 289 304 +15
Continue to review full report at Codecov.
|
Sorry, something went wrong.
…oduces bugs when CPython freeing up enough objects.
| } | ||
| } | ||
| } | ||
| catch |
There was a problem hiding this comment.
isn't is better to explicitly fail, instead of "bypassing" the exception handling with an empty catch {}? What issue is this solving that disposed and disposing flags are not taking care of?
Sorry, something went wrong.
|
|
||
| namespace Python.Runtime | ||
| { | ||
| internal class PyReferenceDecrementer : IDisposable |
There was a problem hiding this comment.
please explain (in the comments) the purpose of PyReferenceDecrementer and what issues it addressed?
Sorry, something went wrong.
| ////Marshal.FreeHGlobal(_programName); | ||
| ////_programName = IntPtr.Zero; | ||
| ////Marshal.FreeHGlobal(_pythonPath); | ||
| ////_pythonPath = IntPtr.Zero; |
There was a problem hiding this comment.
💯 👍
Sorry, something went wrong.
|
|
||
| protected virtual void Dispose(bool disposing) | ||
| { | ||
| //ReleeaseLock is thread bound and if it's called in finalizer thread it can wrongly release lock. |
There was a problem hiding this comment.
typo here
Sorry, something went wrong.
|
@dmitriyse @filmor i left some comments here, but I generally approve this pull request: |
Sorry, something went wrong.
There was a problem hiding this comment.
Please resolve merge conflicts
Sorry, something went wrong.
|
@dmitriyse can you please resolve one merge conflict? can you remind me the order of PRs? If I don't get any feedback from @filmor @vmuriart @yagweb, then I'm going review again and merge this within 2 weeks, when I plan to be on vacation. |
Sorry, something went wrong.
|
@dmitriyse ok, i found this message from you, please let me know if this is still valid: #532 also depends on #534, (which is only a bunch of general fixes). |
Sorry, something went wrong.
|
I will answer some day latter. Sorry. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What does this implement/fix? Explain your changes.
Implements really working finalizers solution.
...
Does this close any currently open issues?
Probably some issues will be fixed.
...
Any other comments?
Current finalizers solution are totally not working. Probably interop calls are disallowed in the C# finalizers. Or Finalizer thread becomes broken after a few calls to ~PyObject.
...
Checklist
Check all those that are applicable and complete.