-
Notifications
You must be signed in to change notification settings - Fork 762
PyObject finalizer #692
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
Merged
Merged
PyObject finalizer #692
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
8083f3b
Finalizer for PyObject
amos402 af33e74
Avoid test interdependency
amos402 6d9f897
Add source to .csproj
amos402 7140fd0
Make sure recover the environment
amos402 f66697d
Add StackTrace of C# exception
amos402 799d37e
Clean up the test and interface
amos402 cb55163
Update CHANGELOG.md
amos402 bfc0392
Mono doesn't have GC.WaitForFullGCComplete
amos402 59b614d
Fixed PythonException leak
amos402 569cd94
Merge branch 'master' into pyobject-finalizer
den-run-ai f4f5032
Fixed nPython.exe crash on Shutdown
amos402 0967a12
Merge branch 'master' into pyobject-finalizer
filmor f071c55
Add error handler
amos402 cfda491
Merge branch 'master' into pyobject-finalizer
amos402 f6c6e42
Merge branch 'master' into pyobject-finalizer
filmor 0d96641
Make collect callback without JIT
amos402 34713f7
Merge branch 'master' into pyobject-finalizer
filmor b4e30ac
Merge branch 'master' into pyobject-finalizer
filmor f836ffa
Merge remote-tracking branch 'remotes/upstream/master' into pyobject-…
amos402 a4bb82d
Add pending marker
amos402 21da86d
Merge branch 'master' into pyobject-finalizer
amos402 5254c65
Remove PYTHONMALLOC setting
amos402 916e85e
Merge remote-tracking branch 'remotes/upstream/master' into pyobject-…
amos402 eee3683
Fix ref count error
amos402 cee8e17
Add ref count check for helping discover the bugs of decref too much
amos402 247e2d9
Fix ref count error
amos402 90c67ca
typo error
amos402 6d68d70
Merge branch 'master' into pyobject-finalizer
filmor 4eff81e
Merge branch 'master' into pyobject-finalizer
filmor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixed nPython.exe crash on Shutdown
- Loading branch information
commit f4f503222d1af92d60e09b00dcb0472c4a50a287
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you calling this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure no garbage left and clear the pending calls.
Pending calls wouldn't clear after calling Py_Finalize, if reset the .net environment, the function pointers would point to unknown memory and cause crash on calling them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you calling
PyErr_Clear
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emmm...It seems I should expose the exceptions in DisposeAll after each
obj.Dispose()