コード例 #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(" !-!-!-!-!-!-! ");
            }
        }
コード例 #2
0
ファイル: GC.cs プロジェクト: sramos30/FlingOS
 public static void Load(GCState newState)
 {
     state = newState;
 }
コード例 #3
0
ファイル: GC.cs プロジェクト: sramos30/FlingOS
        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(" !-!-!-!-!-!-! ");
            }
        }
コード例 #4
0
 public static void Load(GCState newState)
 {
     state = newState;
 }