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(" !-!-!-!-!-!-! "); } }
public static void Load(GCState newState) { state = newState; }
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(" !-!-!-!-!-!-! "); } }