Repository navigation
Commit 95bf38c
committed
gh-158660: Add ASSERT_SET_LOCKED() to _PySet_NextEntry()
_PySet_NextEntryRef() already has the same ASSERT_SET_LOCKED().
Add also some assertions to other setobject.c functions to make sure
that a set is locked when calling set_next() on it.1 parent 5f4aeba commit 95bf38c
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2193 | 2193 | | |
2194 | 2194 | | |
2195 | 2195 | | |
| 2196 | + | |
2196 | 2197 | | |
2197 | 2198 | | |
2198 | 2199 | | |
| |||
2522 | 2523 | | |
2523 | 2524 | | |
2524 | 2525 | | |
| 2526 | + | |
| 2527 | + | |
2525 | 2528 | | |
2526 | 2529 | | |
2527 | 2530 | | |
| |||
3246 | 3249 | | |
3247 | 3250 | | |
3248 | 3251 | | |
3249 | | - | |
3250 | | - | |
3251 | 3252 | | |
3252 | 3253 | | |
3253 | 3254 | | |
3254 | 3255 | | |
3255 | | - | |
| 3256 | + | |
| 3257 | + | |
| 3258 | + | |
| 3259 | + | |
3256 | 3260 | | |
| 3261 | + | |
3257 | 3262 | | |
3258 | 3263 | | |
3259 | 3264 | | |
| |||
3262 | 3267 | | |
3263 | 3268 | | |
3264 | 3269 | | |
3265 | | - | |
3266 | | - | |
3267 | 3270 | | |
3268 | 3271 | | |
3269 | 3272 | | |
3270 | 3273 | | |
3271 | 3274 | | |
3272 | | - | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
3273 | 3278 | | |
| 3279 | + | |
3274 | 3280 | | |
3275 | 3281 | | |
3276 | 3282 | | |
| |||
0 commit comments