GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-156371: Fix missing PyRefTracer_DESTROY events for trashcan objects by corona10 · Pull Request #156372 · python/cpython Conversation
|
|
cc @markshannon |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
cc @vstinner and @iritkatriel who reviewed #132280 :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I've also added the test code for preventing future regression. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| #ifdef Py_TRACE_REFS | ||
| _Py_ForgetReference(op); | ||
| #endif | ||
| _PyReftracerTrack(op, PyRefTracer_DESTROY); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is right. This should be in _PyTrash_thread_destroy_chain()
The object is destroyed when the trashcan is emptied, not when the object is deposited.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Okay, it sounds better and I've applied your suggestion.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
When you're done making the requested changes, leave the comment: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I have made the requested changes; please review again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for making the requested changes! @markshannon: please review the changes made to this pull request. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| @support.requires_resource('cpu') | ||
| @support.skip_emscripten_stack_overflow() | ||
| @support.skip_wasi_stack_overflow() | ||
| def test_destroy_traced_for_trashcan_deferred_objects(self): |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@markshannon gentle ping? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good now, thanks.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks @corona10 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @corona10, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @corona10, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-156789 is a backport of this pull request to the 3.15 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-156802 is a backport of this pull request to the 3.14 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…objects (pythongh-156372) (cherry picked from commit 3dfa574) Co-authored-by: Donghee Na <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.