Imported Upstream version 6.0.0.172

Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-04-12 14:10:50 +00:00
parent 8016999e4d
commit 64ac736ec5
32155 changed files with 3981439 additions and 75368 deletions

View File

@@ -18,7 +18,9 @@ namespace System {
//This class only static members and doesn't require the serializable keyword.
using System;
#if !MONO
using System.Security.Permissions;
#endif
using System.Reflection;
using System.Security;
using System.Threading;
@@ -63,7 +65,7 @@ namespace System {
NotApplicable = 4
}
public static class GC
public static partial class GC
{
#if MONO
[MethodImplAttribute (MethodImplOptions.InternalCall)]
@@ -101,6 +103,9 @@ namespace System {
lastRecordedHeapSize = UIntPtr.Zero;
lastRecordedFragmentation = UIntPtr.Zero;
}
[MethodImplAttribute (MethodImplOptions.InternalCall)]
public static extern long GetAllocatedBytesForCurrentThread ();
#else
[System.Security.SecurityCritical] // auto-generated
[ResourceExposure(ResourceScope.None)]
@@ -226,7 +231,9 @@ namespace System {
#else
[System.Security.SecuritySafeCritical] // auto-generated
#endif
#if !MONO
[ResourceExposure(ResourceScope.None)]
#endif
[MethodImplAttribute(MethodImplOptions.InternalCall)]
public static extern int GetGeneration(Object obj);
@@ -418,8 +425,10 @@ namespace System {
// Indicates that the system should not call the Finalize() method on
// an object that would normally require this call.
#if !MONO
[System.Security.SecurityCritical] // auto-generated
[ResourceExposure(ResourceScope.None)]
#endif
[MethodImplAttribute(MethodImplOptions.InternalCall)]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
private static extern void _SuppressFinalize(Object o);
@@ -437,8 +446,10 @@ namespace System {
// for which SuppressFinalize has already been called. The other situation
// where calling ReRegisterForFinalize is useful is inside a finalizer that
// needs to resurrect itself or an object that it references.
#if !MONO
[System.Security.SecurityCritical] // auto-generated
[ResourceExposure(ResourceScope.None)]
#endif
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern void _ReRegisterForFinalize(Object o);