Ejemplo n.º 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(" !-!-!-!-!-!-! ");
            }
        }
Ejemplo n.º 2
0
 public static void Load(GCState newState)
 {
     state = newState;
 }
Ejemplo n.º 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(" !-!-!-!-!-!-! ");
            }
        }
Ejemplo n.º 4
0
 public static void Load(GCState newState)
 {
     state = newState;
 }