Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[corlib] Simplify RuntimeInformation by getting OS name from the runt…
…ime (#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.
- Loading branch information
1 parent
a3dd8b3
commit a3be248
Showing
5 changed files
with
134 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7828,12 +7828,22 @@ ves_icall_System_Runtime_InteropServices_Marshal_PrelinkAll (MonoReflectionTypeH | |
* which use them in different ways for filling in an enum | ||
*/ | ||
MonoStringHandle | ||
ves_icall_System_Runtime_InteropServices_RuntimeInformation_get_RuntimeArchitecture (MonoError *error) | ||
ves_icall_System_Runtime_InteropServices_RuntimeInformation_GetRuntimeArchitecture (MonoError *error) | ||
{ | ||
error_init (error); | ||
return mono_string_new_handle (mono_domain_get (), mono_config_get_cpu (), error); | ||
} | ||
|
||
/* | ||
* used by System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform | ||
*/ | ||
MonoStringHandle | ||
ves_icall_System_Runtime_InteropServices_RuntimeInformation_GetOSName (MonoError *error) | ||
{ | ||
error_init (error); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
akoeplinger
Member
|
||
return mono_string_new_handle (mono_domain_get (), mono_config_get_os (), error); | ||
} | ||
|
||
int | ||
ves_icall_Interop_Sys_DoubleToString(double value, char *format, char *buffer, int bufferLength) | ||
{ | ||
|
This line not needed.