[netcore] Remove approx. 10 icalls. (#18018)
commitae9192f96febdb5ceea3b73d6aa226d601006371
authorJay Krell <jaykrell@microsoft.com>
Thu, 5 Dec 2019 18:10:29 +0000 (5 10:10 -0800)
committerAleksey Kliger (λgeek) <alklig@microsoft.com>
Thu, 5 Dec 2019 18:10:29 +0000 (5 13:10 -0500)
tree250c4a053bf593cb997fb8c7cd1c7b9a94222974
parent269d509e42c3a359746f017d46c57c44a3cf3b39
[netcore] Remove approx. 10 icalls. (#18018)

* [netcore] Remove ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringUni and _len icalls.
They are implemented in C#.
The C# is equivalent to the C, and could be used for classic runtime, except for the treatment of large/negative lengths.

* Remove a few more icalls.
Instead of ifdef and leaving them uncompiled when compiling netcore,
declare them and put asserts in them.
mono/eglib/glib.h
mono/metadata/icall-def-netcore.h
mono/metadata/icall.c
mono/metadata/marshal-windows.c
mono/metadata/marshal.c