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-112069: Do not require lock if the set has never been exposed. by corona10 · Pull Request #118069 · python/cpython Conversation
|
|
🤖 New build scheduled with the buildbot fleet by @corona10 for commit 50d62bd 🤖 If you want to schedule another build, you need to add the 🔨 test-with-refleak-buildbots label again. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (!PyArg_UnpackTuple(args, Py_TYPE(self)->tp_name, 0, 1, &iterable)) | ||
| return -1; | ||
|
|
||
| if (self->fill == 0 && Py_REFCNT(self) == 1) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think we should do the Py_REFCNT() check first so that we don't access self->fill without a lock in case there are other threads with references modifying self.
Also, do we need to set self->hash = -1 as we do below?
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.
Also, do we need to set self->hash = -1 as we do below?
Well it will be more safe.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@colesbury 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.
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.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.