Repository navigation
Commit 0bdc8b2
committed
gh-160496: Clear inline values with atomic release stores
Py_CLEAR writes NULL non-atomically, racing with the acquire load in
_PyObject_TryGetInstanceAttribute. Invalidating the inline values does not
exclude lookups already in flight. Use a release store before decref, preserving
the clear-before-decref ordering.1 parent 7715c92 commit 0bdc8b2
2 files changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
231 | 264 | | |
232 | 265 | | |
233 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7802 | 7802 | | |
7803 | 7803 | | |
7804 | 7804 | | |
7805 | | - | |
| 7805 | + | |
| 7806 | + | |
| 7807 | + | |
7806 | 7808 | | |
7807 | 7809 | | |
7808 | 7810 | | |
| |||
0 commit comments