Exemplo n.º 1
0
 private static void InitGCSupport()
 {
     ARM_PROGRESS("Kernel!004");
     // Initialize the rest of the primitive runtime.
     VTable.Initialize((RuntimeType)typeof(Kernel));
     ARM_PROGRESS("Kernel!005");
     // Must occur before MemoryManager.PostGCInitialize()
     ProtectionDomain.Initialize();
     ARM_PROGRESS("Kernel!006");
     // Must occur before SharedHeap.Initialize()
     MemoryManager.PostGCInitialize();
     ARM_PROGRESS("Kernel!007");
     // Allocates callback objects for stack growth
     Stacks.Initialize();
     ARM_PROGRESS("Kernel!008");
     // Initialize the HAL parts which require GC allocation
     Platform.ThePlatform.InitializeServices();
     ARM_PROGRESS("Kernel!009");
     SharedHeap.Initialize();
     ARM_PROGRESS("Kernel!010");
     // Must occur after SharedHeap.Initialize();
     ProtectionDomain.DefaultDomain.InitHook();
 }