Search Issue Tracker
By Design
Votes
0
Found in
2017.3.0f3
Issue ID
993826
Regression
No
List.Sort(System.Comparison<T> comparison) generates garbage
Steps to reproduce:
1. Open attached “ListSortGCAllocTest.zip” Unity project
2. Open “ListSortGCAllocTest” scene
3. Open Window->Profiler
4. Enable Record and Deep Profile in Profiler window
5. Enter Play mode
-Notice that garbage is generated in Update.ScriptRunBehaviourUpdate by ListSortGCAllocTest.SortComparison() method
Expected results:
No garbage is generated by List.Sort(Comparison<T> comparison) and GC Alloc is 0 B
Actual results:
Garbage is generated by List.Sort(Comparison<T> comparison) and GC Alloc >0 B
Reproduced in: 2018.2.0a1, 2018.1.0b5, 2017.3.1f1, 2017.2.1p3, 2017.1.3p1, 2017.1.0a1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Add comment