Repository navigation
Commit 2a9680c
Keep the separator out of the object in a test for mmtk
mmtk can embed a String of any length in its object, so `"-" * 1000` keeps its content there and `replace` copies the new content into the same place. The pointer never changes and the test always fails with mmtk. Grow `rs` from an empty string so that its content lives in a separate buffer with any GC.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 9417ce3 commit 2a9680c
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1282 | 1282 | | |
1283 | 1283 | | |
1284 | 1284 | | |
1285 | | - | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
1286 | 1289 | | |
1287 | 1290 | | |
1288 | 1291 | | |
| |||
0 commit comments