Repository navigation
Commit 341ab11
Separate optional keys after taking the snapshot in makeOffsetRequired()
The snapshot was taken after separating, so it shared the table the loop
deletes from: the deletes went into a table of refcount 2 that was also
being iterated. Only the current entry is ever deleted, so the result
was right, but the write violated copy-on-write and trips HT_ASSERT_RC1
on debug PHP builds. Taking the snapshot first makes separate() give the
deletes their own table, at the same one duplication as before.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EKX5yrrUnnbeRtc2oURC2u1 parent c264536 commit 341ab11
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5177 | 5177 | | |
5178 | 5178 | | |
5179 | 5179 | | |
5180 | | - | |
5181 | | - | |
| 5180 | + | |
| 5181 | + | |
| 5182 | + | |
5182 | 5183 | | |
| 5184 | + | |
5183 | 5185 | | |
5184 | 5186 | | |
5185 | 5187 | | |
| |||
0 commit comments