Repository navigation
Commit 24499ff
committed
gh-162752: Assert that the slotdefs of a slot share a function
The slotdefs that fill the same slot all name the same generic function,
since that function has to dispatch to every one of their special
methods. The check that lets a special method assignment skip the
stop-the-world depends on it: it compares a slot with the function of
the slotdef for the assigned name, while update_one_slot() stores that
of whichever slotdef it handled last. If they ever differed, slots
that are up to date could fail the comparison and stop the world on
every assignment. Assert it when the slotdefs are initialized.
Co-authored with Claude Fable 5.21 parent d935e60 commit 24499ff
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12482 | 12482 | | |
12483 | 12483 | | |
12484 | 12484 | | |
| 12485 | + | |
| 12486 | + | |
| 12487 | + | |
| 12488 | + | |
| 12489 | + | |
| 12490 | + | |
| 12491 | + | |
| 12492 | + | |
| 12493 | + | |
| 12494 | + | |
| 12495 | + | |
| 12496 | + | |
12485 | 12497 | | |
12486 | 12498 | | |
12487 | 12499 | | |
| |||
0 commit comments