dotnet / corert

This repo contains CoreRT, an experimental .NET Core runtime optimized for AOT (ahead of time compilation) scenarios, with the accompanying compiler toolchain.
http://dot.net
MIT License
2.91k stars 508 forks source link

Compiling System.Collections.Tests fails when Debug Symbols are turned on #5843

Open A-And opened 6 years ago

A-And commented 6 years ago

Compiling CoreFX's System.Collections.Tests.dll results in a CodeGenerationError caused by a NullReferenceException.

This is likely due to a symbol generation size constraint, hit by L31 of https://github.com/dotnet/corefx/blob/master/src/System.Collections/tests/Generic/Dictionary/HashCollisionScenarios/InputData.cs

MichalStrehovsky commented 6 years ago

dotnet/roslyn#20118 tracks a Roslyn fix to prevent generation of bad debug information for this.

We should try not to crash the compiler.