Files
Aug2021-Cpp2IL-Dump/mscorlib/System/GC.cs
T
2026-04-10 22:50:51 +02:00

194 lines
8.6 KiB
C#

using System;
using System.Runtime.CompilerServices;
using System.Runtime.ConstrainedExecution;
using Cpp2IlInjected;
namespace System
{
/// <summary>Controls the system garbage collector, a service that automatically reclaims unused memory.</summary>
// Token: 0x020000EB RID: 235
[Token(Token = "0x20000EB")]
public static class GC
{
// Token: 0x060008CD RID: 2253 RVA: 0x00007D70 File Offset: 0x00005F70
[Token(Token = "0x60008CD")]
[Address(RVA = "0x1E94E40", Offset = "0x1E93C40", VA = "0x181E94E40")]
private static int GetCollectionCount(int generation)
{
return 0;
}
// Token: 0x060008CE RID: 2254 RVA: 0x00007D88 File Offset: 0x00005F88
[Token(Token = "0x60008CE")]
[Address(RVA = "0x1E94E50", Offset = "0x1E93C50", VA = "0x181E94E50")]
private static int GetMaxGeneration()
{
return 0;
}
// Token: 0x060008CF RID: 2255 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60008CF")]
[Address(RVA = "0x1E94E70", Offset = "0x1E93C70", VA = "0x181E94E70")]
private static void InternalCollect(int generation)
{
}
// Token: 0x060008D0 RID: 2256 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60008D0")]
[Address(RVA = "0x1E94F10", Offset = "0x1E93D10", VA = "0x181E94F10")]
private static void RecordPressure(long bytesAllocated)
{
}
// Token: 0x060008D1 RID: 2257 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60008D1")]
[Address(RVA = "0x1B65790", Offset = "0x1B64590", VA = "0x181B65790")]
internal static void register_ephemeron_array(Ephemeron[] array)
{
}
// Token: 0x060008D2 RID: 2258 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60008D2")]
[Address(RVA = "0x1E95170", Offset = "0x1E93F70", VA = "0x181E95170")]
private static object get_ephemeron_tombstone()
{
return null;
}
/// <summary>Informs the runtime of a large allocation of unmanaged memory that should be taken into account when scheduling garbage collection.</summary>
/// <param name="bytesAllocated">The incremental amount of unmanaged memory that has been allocated.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="bytesAllocated" /> is less than or equal to 0.
/// -or-
/// On a 32-bit computer, <paramref name="bytesAllocated" /> is larger than <see cref="F:System.Int32.MaxValue" />.</exception>
// Token: 0x060008D3 RID: 2259 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60008D3")]
[Address(RVA = "0x1E94C10", Offset = "0x1E93A10", VA = "0x181E94C10")]
public static void AddMemoryPressure(long bytesAllocated)
{
}
/// <summary>Informs the runtime that unmanaged memory has been released and no longer needs to be taken into account when scheduling garbage collection.</summary>
/// <param name="bytesAllocated">The amount of unmanaged memory that has been released.</param>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="bytesAllocated" /> is less than or equal to 0.
/// -or-
/// On a 32-bit computer, <paramref name="bytesAllocated" /> is larger than <see cref="F:System.Int32.MaxValue" />.</exception>
// Token: 0x060008D4 RID: 2260 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60008D4")]
[Address(RVA = "0x1E94F20", Offset = "0x1E93D20", VA = "0x181E94F20")]
public static void RemoveMemoryPressure(long bytesAllocated)
{
}
/// <summary>Forces an immediate garbage collection of all generations.</summary>
// Token: 0x060008D5 RID: 2261 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60008D5")]
[Address(RVA = "0x1E94D10", Offset = "0x1E93B10", VA = "0x181E94D10")]
public static void Collect()
{
}
/// <summary>Returns the number of times garbage collection has occurred for the specified generation of objects.</summary>
/// <param name="generation">The generation of objects for which the garbage collection count is to be determined.</param>
/// <returns>The number of times garbage collection has occurred for the specified generation since the process was started.</returns>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="generation" /> is less than 0.</exception>
// Token: 0x060008D6 RID: 2262 RVA: 0x00007DA0 File Offset: 0x00005FA0
[Token(Token = "0x60008D6")]
[Address(RVA = "0x1E94DA0", Offset = "0x1E93BA0", VA = "0x181E94DA0")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static int CollectionCount(int generation)
{
return 0;
}
/// <summary>References the specified object, which makes it ineligible for garbage collection from the start of the current routine to the point where this method is called.</summary>
/// <param name="obj">The object to reference.</param>
// Token: 0x060008D7 RID: 2263 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60008D7")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static void KeepAlive(object obj)
{
}
/// <summary>Gets the maximum number of generations that the system currently supports.</summary>
/// <returns>A value that ranges from zero to the maximum number of supported generations.</returns>
// Token: 0x170000C9 RID: 201
// (get) Token: 0x060008D8 RID: 2264 RVA: 0x00007DB8 File Offset: 0x00005FB8
[Token(Token = "0x170000C9")]
public static int MaxGeneration
{
[Token(Token = "0x60008D8")]
[Address(RVA = "0x1E95120", Offset = "0x1E93F20", VA = "0x181E95120")]
get
{
return 0;
}
}
/// <summary>Suspends the current thread until the thread that is processing the queue of finalizers has emptied that queue.</summary>
// Token: 0x060008D9 RID: 2265 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60008D9")]
[Address(RVA = "0x1E950B0", Offset = "0x1E93EB0", VA = "0x181E950B0")]
public static void WaitForPendingFinalizers()
{
}
// Token: 0x060008DA RID: 2266 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60008DA")]
[Address(RVA = "0x1E950D0", Offset = "0x1E93ED0", VA = "0x181E950D0")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
private static void _SuppressFinalize(object o)
{
}
/// <summary>Requests that the common language runtime not call the finalizer for the specified object.</summary>
/// <param name="obj">The object whose finalizer must not be executed.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="obj" /> is <see langword="null" />.</exception>
// Token: 0x060008DB RID: 2267 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60008DB")]
[Address(RVA = "0x1E95020", Offset = "0x1E93E20", VA = "0x181E95020")]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static void SuppressFinalize(object obj)
{
}
// Token: 0x060008DC RID: 2268 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60008DC")]
[Address(RVA = "0x1E950C0", Offset = "0x1E93EC0", VA = "0x181E950C0")]
private static void _ReRegisterForFinalize(object o)
{
}
/// <summary>Requests that the system call the finalizer for the specified object for which <see cref="M:System.GC.SuppressFinalize(System.Object)" /> has previously been called.</summary>
/// <param name="obj">The object that a finalizer must be called for.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="obj" /> is <see langword="null" />.</exception>
// Token: 0x060008DD RID: 2269 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60008DD")]
[Address(RVA = "0x1E94E80", Offset = "0x1E93C80", VA = "0x181E94E80")]
public static void ReRegisterForFinalize(object obj)
{
}
/// <summary>Retrieves the number of bytes currently thought to be allocated. A parameter indicates whether this method can wait a short interval before returning, to allow the system to collect garbage and finalize objects.</summary>
/// <param name="forceFullCollection">
/// <see langword="true" /> to indicate that this method can wait for garbage collection to occur before returning; otherwise, <see langword="false" />.</param>
/// <returns>A number that is the best available approximation of the number of bytes currently allocated in managed memory.</returns>
// Token: 0x060008DE RID: 2270 RVA: 0x00007DD0 File Offset: 0x00005FD0
[Token(Token = "0x60008DE")]
[Address(RVA = "0x1E94E60", Offset = "0x1E93C60", VA = "0x181E94E60")]
public static long GetTotalMemory(bool forceFullCollection)
{
return 0L;
}
// Token: 0x04000367 RID: 871
[Token(Token = "0x4000367")]
internal static readonly object EPHEMERON_TOMBSTONE;
}
}