Added ical to netcore.
authorNathan Ricci <naricc@microsoft.com>
Tue, 20 Aug 2019 21:37:58 +0000 (17:37 -0400)
committerNathan Ricci <naricc@microsoft.com>
Tue, 20 Aug 2019 21:37:58 +0000 (17:37 -0400)
Commit migrated from https://github.com/mono/mono/commit/fb7895dddfc12fe33a5e3abf528ec3e195c1a3ff

src/mono/mono/metadata/icall-def-netcore.h
src/mono/netcore/System.Private.CoreLib/src/System/GC.cs

index 9b5ecff..4726443 100644 (file)
@@ -97,6 +97,7 @@ NOHANDLES(ICALL(ENV_20, "set_ExitCode", mono_environment_exitcode_set))
 
 ICALL_TYPE(GC, "System.GC", GC_10)
 NOHANDLES(ICALL(GC_10, "GetAllocatedBytesForCurrentThread", ves_icall_System_GC_GetAllocatedBytesForCurrentThread))
+HANDLES(GC_11, "GetTotalAllocatedBytes", ves_icall_System_GC_GetTotalAllocatedBytes, gint64, 1, (MonoBoolean))
 NOHANDLES(ICALL(GC_0, "GetCollectionCount", ves_icall_System_GC_GetCollectionCount))
 HANDLES(GC_0a, "GetGeneration", ves_icall_System_GC_GetGeneration, int, 1, (MonoObject))
 NOHANDLES(ICALL(GC_0b, "GetMaxGeneration", ves_icall_System_GC_GetMaxGeneration))
index 61c0a4e..168ba7d 100644 (file)
@@ -49,7 +49,7 @@ namespace System
                public static extern long GetAllocatedBytesForCurrentThread ();
 
                [MethodImplAttribute (MethodImplOptions.InternalCall)]
-               public static long GetTotalAllocatedBytes (bool precise = false);
+               public static extern long GetTotalAllocatedBytes (bool precise = false);
 
                public static void AddMemoryPressure (long bytesAllocated)
                {