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

Mono

-

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

Add comment

Log in to post comment