How to reproduce:
- Open the attached "IN-155272" project
- In the menu bar, select "Tools" > "Bug Repros" > "Smart Strings variable allocation"
- Observe the Console
Actual result: The Console shows "IntVariable.Value, 1,000,000 sets: 5 garbage collections"
Expected result: The Console shows "IntVariable.Value, 1,000,000 sets: 0 garbage collections"
Reproducible with: 6000.7.0a4, 6000.7.0b6, 7000.0.0a10
Could not test with: 6000.0.0f1 (Smart Strings was added to the Editor in 6000.7.0a4)
Reproducible on: Windows 10 (by user), Windows 11 Enterprise (25H2)
Not reproducible on: No other environments tested
Note: The number of garbage collections varies between runs (1 to 5) but is never 0; the plain int field in the same script always shows 0