Skip to content

Added a test for finalization on shutdown #1206

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 1 commit into from
Sep 20, 2020

Conversation

lostmsu
Copy link
Member

@lostmsu lostmsu commented Aug 20, 2020

Potential issue reported here: 610d309#commitcomment-41601957

@codecov-commenter
Copy link

codecov-commenter commented Aug 21, 2020

Codecov Report

Merging #1206 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1206   +/-   ##
=======================================
  Coverage   86.25%   86.25%           
=======================================
  Files           1        1           
  Lines         291      291           
=======================================
  Hits          251      251           
  Misses         40       40           
Flag Coverage Δ
#setup_linux 64.94% <ø> (ø)
#setup_windows 72.50% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c84b10...86a97fd. Read the comment docs.

lostmsu referenced this pull request Aug 21, 2020
This is an attempt to make finalizer much simpler.

Instead of using .NET async tasks, Py_AddPendingCall or other synchronization mechanism we simply move objects to be finalized into a ConcurrentQueue, which is periodically drained when a new PyObject is constructed.
@lostmsu lostmsu force-pushed the bugs/FinalizationOnShutdown branch from 73edfdc to 86a97fd Compare September 20, 2020 18:48
@lostmsu lostmsu changed the title [Draft] Added a test for finalization on shutdown Added a test for finalization on shutdown Sep 20, 2020
@lostmsu lostmsu merged commit ef2e6b4 into pythonnet:master Sep 20, 2020
@lostmsu lostmsu deleted the bugs/FinalizationOnShutdown branch September 20, 2020 19:58
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.

2 participants