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-99205: Mark new interpreters and threads as non-static by brandtbucher · Pull Request #99268 · python/cpython Conversation
|
| memcpy(tstate, | ||
| &initial._main_interpreter._initial_thread, | ||
| sizeof(*tstate)); | ||
| tstate->_static = false; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please add a note pointing to PyThreadState_INIT() and indicating that fields set there should be adjusted here as appropriate.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // Set to _PyInterpreterState_INIT. | ||
| memcpy(interp, &initial._main_interpreter, | ||
| sizeof(*interp)); | ||
| interp->_static = false; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Likewise, a note pointing to PyInterpreterState_INIT().
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for fixing this, BTW. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@pablogsal, leak tests didn't catch this because we use the "raw" domain to allocate |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Oh interesting, can you confirm that changing the domain to memory makes the test fail? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
You can't. :) See this comment: Lines 818 to 821 in 58ee5d8
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @brandtbucher for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
GH-99301 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…onGH-99268) (cherry picked from commit 283ab0e) Co-authored-by: Brandt Bucher <[email protected]>
(cherry picked from commit 283ab0e) Co-authored-by: Brandt Bucher <[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.