From: Nathan Ricci Date: Tue, 20 Aug 2019 21:37:58 +0000 (-0400) Subject: Added ical to netcore. X-Git-Tag: submit/tizen/20210909.063632~10331^2~5^2~516^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8884edd980cda563c571e428af43384357404154;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Added ical to netcore. Commit migrated from https://github.com/mono/mono/commit/fb7895dddfc12fe33a5e3abf528ec3e195c1a3ff --- diff --git a/src/mono/mono/metadata/icall-def-netcore.h b/src/mono/mono/metadata/icall-def-netcore.h index 9b5ecff..4726443 100644 --- a/src/mono/mono/metadata/icall-def-netcore.h +++ b/src/mono/mono/metadata/icall-def-netcore.h @@ -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)) diff --git a/src/mono/netcore/System.Private.CoreLib/src/System/GC.cs b/src/mono/netcore/System.Private.CoreLib/src/System/GC.cs index 61c0a4e..168ba7d 100644 --- a/src/mono/netcore/System.Private.CoreLib/src/System/GC.cs +++ b/src/mono/netcore/System.Private.CoreLib/src/System/GC.cs @@ -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) {