Mark unsafe intrinsics as reflection blocked
authorMichal Strehovský <michals@microsoft.com>
Sun, 8 Sep 2019 20:00:18 +0000 (22:00 +0200)
committerMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Mon, 9 Sep 2019 12:57:39 +0000 (14:57 +0200)
Keeping these reflection enabled pulls in quite a bit of junk (generic dictionaries, standalone method bodies, bookkeeping) that adds up to 1.5% of the size of Hello World...

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/87d194f3ecc0b41e95b43e3132e947feb9e6514b

src/libraries/System.Private.CoreLib/src/Internal/Runtime/CompilerServices/Unsafe.cs

index 76d6fac..4a93d98 100644 (file)
@@ -39,7 +39,7 @@ namespace Internal.Runtime.CompilerServices
     /// For internal use only. Contains generic, low-level functionality for manipulating pointers.
     /// </summary>
     [CLSCompliant(false)]
-    public static unsafe class Unsafe
+    public static unsafe partial class Unsafe
     {
         /// <summary>
         /// Returns a pointer to the given by-ref parameter.