| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
With #100689 the capsule also needs to isolated. LMK when this goes out of draft. |
Sorry, something went wrong.
Yes, I also made a note of that. I hope to be able to allocate time for CPython this weekend. |
Sorry, something went wrong.
|
I remember doing a proof-of-concept full isolation of _elementtree some years ago, and the diff ended up close to 1000 lines. I suggest breaking this up in several PRs. Approximately something like this:
We might want to split the ET_STATE_GLOBAL-thing in multiple PRs. It's bound to end up ugly. UDPATE This plan won't work out, because we need heap types before being able to completely get rid of ET_STATE_GLOBAL. We also need to get rid of ET_STATE_GLOBAL in order to implement multi-phase init. Things are entwined. Alternative plan:
|
Sorry, something went wrong.
|
@kumaraditya303: I wonder if we should tie this PR to gh-92123, or if we should create a targeted issue specifically for isolating _elementtree. |
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit 744be65 🤖 If you want to schedule another build, you need to add the :hammer: test-with-refleak-buildbots label again. |
Sorry, something went wrong.
Let's link it to the bug report, we did a similar thing for asyncio IIRC. I am in favor of landing this PR and continue other improvements in smaller PRs. |
Sorry, something went wrong.
|
@kumaraditya303: thanks for the immutable types reminder; I also had forgotten to disallow instantiation for the iter type. |
Sorry, something went wrong.
|
🤖 New build scheduled with the buildbot fleet by @erlend-aasland for commit 04aaa3d 🤖 If you want to schedule another build, you need to add the :hammer: test-with-refleak-buildbots label again. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
All right, let's land this; I'll open PRs for getting rid of ET_STATE_GLOBAL right away. |
Sorry, something went wrong.
|
Thanks for the great review, Kumar! |
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot ARM Raspbian 3.x has failed when building commit 3847a6c. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/424/builds/3305 Summary of the results of the build (if available): == Tests result: ENV CHANGED == 411 tests OK. 10 slowest tests:
1 test altered the execution environment: 21 tests skipped: Total duration: 31 min 25 sec Click to see traceback logsremote: Enumerating objects: 26, done.
remote: Counting objects: 3% (1/26)
remote: Counting objects: 7% (2/26)
remote: Counting objects: 11% (3/26)
remote: Counting objects: 15% (4/26)
remote: Counting objects: 19% (5/26)
remote: Counting objects: 23% (6/26)
remote: Counting objects: 26% (7/26)
remote: Counting objects: 30% (8/26)
remote: Counting objects: 34% (9/26)
remote: Counting objects: 38% (10/26)
remote: Counting objects: 42% (11/26)
remote: Counting objects: 46% (12/26)
remote: Counting objects: 50% (13/26)
remote: Counting objects: 53% (14/26)
remote: Counting objects: 57% (15/26)
remote: Counting objects: 61% (16/26)
remote: Counting objects: 65% (17/26)
remote: Counting objects: 69% (18/26)
remote: Counting objects: 73% (19/26)
remote: Counting objects: 76% (20/26)
remote: Counting objects: 80% (21/26)
remote: Counting objects: 84% (22/26)
remote: Counting objects: 88% (23/26)
remote: Counting objects: 92% (24/26)
remote: Counting objects: 96% (25/26)
remote: Counting objects: 100% (26/26)
remote: Counting objects: 100% (26/26), done.
remote: Compressing objects: 7% (1/14)
remote: Compressing objects: 14% (2/14)
remote: Compressing objects: 21% (3/14)
remote: Compressing objects: 28% (4/14)
remote: Compressing objects: 35% (5/14)
remote: Compressing objects: 42% (6/14)
remote: Compressing objects: 50% (7/14)
remote: Compressing objects: 57% (8/14)
remote: Compressing objects: 64% (9/14)
remote: Compressing objects: 71% (10/14)
remote: Compressing objects: 78% (11/14)
remote: Compressing objects: 85% (12/14)
remote: Compressing objects: 92% (13/14)
remote: Compressing objects: 100% (14/14)
remote: Compressing objects: 100% (14/14), done.
remote: Total 14 (delta 12), reused 1 (delta 0), pack-reused 0
From https://github.com/python/cpython
* branch main -> FETCH_HEAD
Note: switching to '3847a6c64b96bb2cb93be394a590d4df2c35e876'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 3847a6c64b gh-92123: Convert `_elementtree` types to heap types (#99221)
Switched to and reset branch 'main'
Objects/obmalloc.c:776:1: warning: ‘always_inline’ function might not be inlinable [-Wattributes]
776 | arena_map_get(pymem_block *p, int create)
| ^~~~~~~~~~~~~
make: *** [Makefile:1911: buildbottest] Error 3 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
GH-23428 resurrected.