Repository navigation
Commit c520bb0
Guard MutatingBucketIterator.replace against relinking an already-linked Entry
bric3 hit the case while trying the Hashtable API: splicing in an Entry
that's still part of another chain silently corrupts it. insertHeadEntryAt
already asserted against this; add the same assertion to replace(), note
the caller contract on D1.insert's javadoc, and add a regression test.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent d05c61f commit c520bb0
2 files changed
Lines changed: 28 additions & 1 deletion
File tree
- internal-api/src
- main/java/datadog/trace/util
- test/java/datadog/trace/util
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
| |||
1802 | 1805 | | |
1803 | 1806 | | |
1804 | 1807 | | |
| 1808 | + | |
| 1809 | + | |
1805 | 1810 | | |
1806 | 1811 | | |
1807 | 1812 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
203 | 219 | | |
204 | 220 | | |
205 | 221 | | |
| |||
923 | 939 | | |
924 | 940 | | |
925 | 941 | | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
926 | 948 | | |
0 commit comments