[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
commita3be248d3fbc278398c1937788ebce2a7b0c211d
authorCalvin Buckley <calvin@cmpct.info>
Wed, 27 Feb 2019 22:21:34 +0000 (27 18:21 -0400)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 27 Feb 2019 22:21:34 +0000 (27 23:21 +0100)
treefe7eb32763c6ac5da27f9848cf368b91680d4d7a
parenta3dd8b32463c57edf09c2acd7bdb19b4e0643e10
[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)

We can get the the OS name similar to the architecture from the value that is used by the runtime for DllMaps.

Cached the values into static fields so we only need to do the runtime icall once.

Added all the existing OS names recognized by DllMap to RuntimeInformation.
This also allows us to mark some corlib/System tests that hang the runtime on AIX as non-working.
mcs/class/System/Test/System.Diagnostics/ProcessTest.cs
mcs/class/corlib/System.Runtime.InteropServices.RuntimeInformation/RuntimeInformation.cs
mcs/class/corlib/Test/System.Threading/InterlockedTest.cs
mono/metadata/icall-def.h
mono/metadata/icall.c