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

CppCodeGen: Implement RVA-backed static fields #7799

Open jkotas opened 5 years ago

jkotas commented 5 years ago

E.g. private static ReadOnlySpan<byte> CategoryForLatin1 => new byte[] { 1, 2, 3, ... };. CppCodeGen allocates space for these, but does not initialize it.

MichalStrehovsky commented 5 years ago

We should revert workaround added in https://github.com/dotnet/corert/commit/a7ce92678876ba55a1c7a65c464363b51d777b4f when this is fixed.