Transfer the ownership of method's thunk to caller(split from #958) by amos402 · Pull Request #1003 · pythonnet/pythonnet
Repository navigation
Transfer the ownership of method's thunk to caller(split from #958) - #1003
Merged
filmor merged 8 commits into pythonnet:master from amos402:release-thunk Dec 18, 2019
Merged
Transfer the ownership of method's thunk to caller(split from #958) #1003 filmor merged 8 commits into pythonnet:master from amos402:release-thunk
Conversation
amos402 commented Nov 30, 2019
Copy link Copy Markdown
Member
What does this implement/fix? Explain your changes.
Let the caller handle the lifecycle for achieving the memory release when shutdown pythonnet regardless of normal shutdown or soft shutdown in #958 .
Does this close any currently open issues?
...
Any other comments?
...
Checklist
Check all those that are applicable and complete.
- Make sure to include one or more tests for your change
- If an enhancement PR, please create docs and at best an example
- Add yourself to
AUTHORS - Updated the
CHANGELOG
Add exception helper
7f530f2
Make the caller of Interop.GetThunk handle thunk's lifecycle(unfini...
90e44bd
...shed)
codecov-io commented Nov 30, 2019 · edited Loading
Copy link Copy Markdown
Codecov Report
@@ Coverage Diff @@ ## master #1003 +/- ## ======================================= Coverage 86.71% 86.71% ======================================= Files 1 1 Lines 301 301 ======================================= Hits 261 261 Misses 40 40
Continue to review full report at Codecov .
|
Merge branch 'master' into release-thunk
3cc717f
Merge branch 'master' into release-thunk
7c97668
lostmsu commented Dec 3, 2019 · edited Loading
Copy link Copy Markdown
Member
|
Is there a reason why we are not using |
amos402 commented Dec 4, 2019
Copy link Copy Markdown
Member
Author
|
Usually I also use |
Merge branch 'master' into release-thunk
b532b6c
filmor commented Dec 16, 2019
Copy link Copy Markdown
Member
|
@amos402 Do you think you can update this PR to make use of |
Resolve merge conflict
169b1c2
Use Marshal.GetFunctionPointerForDelegate instead of Marshal + Thunk
a2e43ec
Merge branch 'master' into release-thunk
3d2d2b6
filmor
approved these changes
Dec 18, 2019
View reviewed changes
filmor left a comment
Copy link Copy Markdown
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
I think this can be simplified further in the future, but it's definitely better than it was before :)
filmor merged commitf0e9c38
into
pythonnet : master
Dec 18, 2019
AlexCatarino
pushed a commit
to QuantConnect/pythonnet
that referenced
this pull request
Jun 27, 2020
Transfer the ownership of method's thunk to caller(split from pythonn...
9d9845d
...et#958) (pythonnet#1003) * Add exception helper * Make the caller of `Interop.GetThunk` handle thunk's lifecycle(unfinished) * Use Marshal.GetFunctionPointerForDelegate instead of Marshal + ThunkSign up for free to join this conversation on GitHub . Already have an account? Sign in to comment