Commit 44bf94a
committed
Include ivar name and class in class/module ivar-get isolation violation (fast path)
The attr-index fast path (rb_ivar_get_at, used by JITs) emitted a bare
isolation-violation message without naming the ivar or class, unlike the
generic rb_ivar_lookup path. Interpolate the ivar name and class (via
rb_class_path to avoid to_s recursion) so warnings from the fast path
also identify the offending (@Iv from Class).1 parent aaeb451 commit 44bf94a
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1552 | 1552 | | |
1553 | 1553 | | |
1554 | 1554 | | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
1555 | 1563 | | |
1556 | | - | |
| 1564 | + | |
| 1565 | + | |
1557 | 1566 | | |
1558 | 1567 | | |
1559 | 1568 | | |
| |||
0 commit comments