Skip to content

Conversation

@corona10
Copy link
Member

@corona10corona10 commented Mar 9, 2024

PyObject**old_items=self->ob_item;
if (self->ob_item){
if (allocated<new_allocated){
memcpy(&array->ob_item, self->ob_item, allocated*sizeof(PyObject*));
Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for catching shrink case, @colesbury

@corona10corona10 added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 9, 2024
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @corona10 for commit b98f853 🤖

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 9, 2024
@corona10corona10 linked an issue Mar 9, 2024 that may be closed by this pull request
4 tasks
@corona10corona10 added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 9, 2024
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @corona10 for commit d1ac2d4 🤖

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 9, 2024
@corona10corona10 added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 9, 2024
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @corona10 for commit d1ac2d4 🤖

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 9, 2024
@@ -0,0 +1 @@
:class:`list` is now compatible with the implementation of :pep:`703`.
Copy link
MemberAuthor

@corona10corona10Mar 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR should be the final PR for #112087.
I think that we can close the issue, and after GIL is disabled, we can track relevant issues from a separate issue.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more thing I noticed here is that list.sort should have a critical section

@corona10
Copy link
MemberAuthor

PPC related failure: Not related to this PR.

/tmp/ccfdq0MP.s: Fatal error: can't write 821 bytes to section .gnu.lto_ucs4lib_rfind.672.76bf242dbd85e46 of Objects/unicodeobject.o: 'No space left on device' /tmp/ccfdq0MP.s: Fatal error: Objects/unicodeobject.o: No such file or directory make: *** [Makefile:3000: Objects/unicodeobject.o] Error 1 

@corona10corona10 added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 9, 2024
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @corona10 for commit 3b7d24e 🤖

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 9, 2024
@corona10corona10 added the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 9, 2024
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @corona10 for commit eb277c4 🤖

If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-refleak-buildbots Test PR w/ refleak buildbots; report in status section label Mar 9, 2024
@corona10corona10 requested a review from colesburyMarch 9, 2024 20:42
#ifdefPy_GIL_DISABLED
typedefstruct{
Py_ssize_tallocated;
PyObject*ob_item;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be a flexible array member like:

Suggested change
PyObject*ob_item;
PyObject*ob_item[];

Like dk_indices in PyDictKeysObject

chardk_indices[]; /* char is required to avoid strict aliasing. */

@@ -0,0 +1 @@
:class:`list` is now compatible with the implementation of :pep:`703`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more thing I noticed here is that list.sort should have a critical section

@corona10
Copy link
MemberAuthor

One more thing I noticed here is that list.sort should have a critical section

I will submit the PR right a way.

@corona10corona10 merged commit 17d31bf into python:mainMar 9, 2024
@corona10corona10 deleted the gh-112087-allocation branch March 9, 2024 23:53
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@corona10@bedevere-bot@colesbury