diff options
Diffstat (limited to 'mcs/class/corlib/System/GC.cs')
-rwxr-xr-x | mcs/class/corlib/System/GC.cs | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/mcs/class/corlib/System/GC.cs b/mcs/class/corlib/System/GC.cs deleted file mode 100755 index f478a1f1589..00000000000 --- a/mcs/class/corlib/System/GC.cs +++ /dev/null @@ -1,65 +0,0 @@ - - -// -// System/GC.cs -// -// Author: -// Paolo Molaro (lupus@ximian.com) -// -// (C) 2001 Ximian, Inc. http://www.ximian.com -// - -using System; -using System.Runtime.CompilerServices; - -namespace System { - public sealed class GC { - - private GC () {} - - /* as long as we use Boehm... */ - public static int MaxGeneration { - get {return 0;} - } - - [MethodImplAttribute (MethodImplOptions.InternalCall)] - extern static void InternalCollect (int generation); - - public static void Collect () { - InternalCollect (MaxGeneration); - } - - public static void Collect (int generation) { - if (generation < 0 || generation > MaxGeneration) - throw new ArgumentOutOfRangeException ("generation"); - InternalCollect (generation); - } - - public static int GetGeneration (object obj) { - return 0; - } - - public static int GetGeneration (WeakReference wo) { - if (!wo.IsAlive) - throw new ArgumentException (); - return 0; - } - - [MethodImplAttribute (MethodImplOptions.InternalCall)] - public extern static long GetTotalMemory (bool forceFullCollection); - - /* this icall has weird semantics check the docs... */ - [MethodImplAttribute (MethodImplOptions.InternalCall)] - public extern static void KeepAlive (object obj); - - [MethodImplAttribute (MethodImplOptions.InternalCall)] - public extern static void ReRegisterForFinalize (object obj); - - [MethodImplAttribute (MethodImplOptions.InternalCall)] - public extern static void SuppressFinalize (object obj); - - [MethodImplAttribute (MethodImplOptions.InternalCall)] - public extern static void WaitForPendingFinalizers(); - - } -} |