Beispiel #1
0
        static GC()
        {
            Heap.InitFixedHeap();

            ExceptionMethods.State = ExceptionMethods.DefaultState = (ExceptionState *)Heap.AllocZeroed((uint)sizeof(ExceptionState), "GC()");

            Enabled = true;

            Heap.AccessLock            = new SpinLock();
            Heap.AccessLockInitialised = true;

            GC.state                       = new GCState();
            GC.state.AccessLock            = new SpinLock();
            GC.state.AccessLockInitialised = true;

            if ((uint)GC.state.CleanupList == 0xFFFFFFFF)
            {
                BasicConsole.WriteLine(" !!! PANIC !!! ");
                BasicConsole.WriteLine(" GC.state.CleanupList is 0xFFFFFFFF NOT null!");
                BasicConsole.WriteLine(" !-!-!-!-!-!-! ");
            }
        }
Beispiel #2
0
 public static void Load(GCState newState)
 {
     state = newState;
 }
Beispiel #3
0
        static GC()
        {
            Heap.InitFixedHeap();

            ExceptionMethods.State = ExceptionMethods.DefaultState = (ExceptionState*)Heap.AllocZeroed((uint)sizeof(ExceptionState), "GC()");

            Enabled = true;

            Heap.AccessLock = new SpinLock();
            Heap.AccessLockInitialised = true;

            GC.state = new GCState();
            GC.state.AccessLock = new SpinLock();
            GC.state.AccessLockInitialised = true;

            if ((uint)GC.state.CleanupList == 0xFFFFFFFF)
            {
                BasicConsole.WriteLine(" !!! PANIC !!! ");
                BasicConsole.WriteLine(" GC.state.CleanupList is 0xFFFFFFFF NOT null!");
                BasicConsole.WriteLine(" !-!-!-!-!-!-! ");
            }
        }
Beispiel #4
0
 public static void Load(GCState newState)
 {
     state = newState;
 }