Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2018.1.0f2
Issue ID
1041305
Regression
No
[.NET 4.6] Unexpected GC allocations in List.AddRange
To reproduce:
1. Open the attached project (AddRange2.zip)
2. Open the SampleScene
3. Enter Play mode
4. Open the Profiler, search for "Repro" and observe that it allocates some bytes
Expected: List.AddRange doesn't allocate any bytes as it doesn't in .NET 3.5
Reproduced in 2017.3.2f1, 2017.4.4f1, 2018.1.0f2, 2018.2.0b5, 2018.3.0a1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- NullReferenceExceptions are being thrown when saving a ScriptableObject with an array of a type with a CustomPropertyDrawer that uses TrackPropertyValue
- Applied velocity is inconsistent when using Rigidbody AddForce() with ForceMode.VelocityChange
- Crash on AudioUtil_CUSTOM_HasAudioCallback when exiting Play Mode while the Inspector is displaying a GameObject with an empty script attached
- Scroll offset is framerate-dependent when scrolling with velocity in the Device Simulator
- "Object.FindObjectsOfType<T>() is obsolete" warning is thrown when using "Transitions Plus" asset
Add comment