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-94382: port multiprocessing static types to heap types by kumaraditya303 · Pull Request #94336 · python/cpython Conversation
|
|
🤖 New build scheduled with the buildbot fleet by @kumaraditya303 for commit 100ad99 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Refleaks bots are failing because of #94330 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@kumaraditya303, thanks for the PR. One of the most important aims of PEP-687 is to communicate the changes before they happen. See Part 1: Preparation. I'd prefer if you please re-read the PEP and follow its guidelines as specified. You'll notice that opening a PR comes in the second half of the process. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I'll create an issue to discuss it but I don't expect much as the module has no global state and the implemented types are not performance critical. I had worked on this months ago just was waiting for PEP to get accepted :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
If the types do not access global module state they should remain static; this is explicitly noted in the PEP. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Well, the important thing is that it gets done. Lack of communication is the single one issue that has contributed to heating the discussions regarding these changes. Even if we expect few people to participate in such a topic, it is of importance to raise awareness (and then wait at least for a week or two before continuing). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@erlend-aasland: Let's continue the discussion on the issue #94382 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Removing do-not-merge as no alternative PR has been proposed so far. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase And if you don't make the requested changes, you will be poked with soft cushions! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: Erlend Egeberg Aasland <[email protected]>
Well, only three hours passed. That's a little narrow time-frame, don't you agree? :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
As of Petr's last comment, please re-label this with do-not-merge until there is an agreement. |
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.
Please add a NEWS entry explaining that the purpose of this PR is to fix memory leaks when the _multiprocessing extension module is loaded/unloaded multiple times: #94382 (comment)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
This means I can remove do-not-merge, right ? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
That's unrelated. @erlend-aasland wrote:
Since @erlend-aasland and @encukou wrote PEP 687, I understand that you need to agree on that specific PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, I'm no longer convinced that this PR fix an actual memory leak. The NEWS entry no looks wrong to me. Test from #94382 (comment): Without this PR, Python leaks memory: refs +469, blocks +160. With this PR (rebased to main), Python still leaks memory: refs +469, blocks +160 (no change). Tell me if I did something wrong. If I modify the test to import the Note: I added an empty line for readability. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
I had only verified single leak #94382 (comment) which is fixed by this PR. If the multiple initialization is not fixed, there must be something in multiprocessing module which is causing it. Anyways, I'll wait for decision on the discourse now before putting anymore effort into this as there are more reason for this change other than multiple initialization. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Please wait until there is an agreement for this change on Discourse. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
FYI, I'll merge this in a day or two. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm hesitant to backport this change. Let me know if you disagree, Victor / Petr. |
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, Kumar! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.