public static new void Initialize() { GenerationalCollector.Initialize(); SemispaceCollector.Initialize(); SlidingCollector.Initialize(); // instance = new AdaptiveCopyingCollector(); instance = (AdaptiveCopyingCollector ) BootstrapMemory.Allocate(typeof(AdaptiveCopyingCollector)); }
public static new void Initialize() { GenerationalCollector.Initialize(); // SlidingCollector.instance = new SlidingCollector(); SlidingCollector.instance = (SlidingCollector) BootstrapMemory.Allocate(typeof(SlidingCollector)); // markReferenceVisitor = new MarkReferenceVisitor(); markReferenceVisitor = (MarkReferenceVisitor) BootstrapMemory.Allocate(typeof(MarkReferenceVisitor)); // registerThreadReferenceVisitor = new RegisterThreadReference(); registerThreadReferenceVisitor = (RegisterThreadReference) BootstrapMemory.Allocate(typeof(RegisterThreadReference)); // registerPinnedReferenceVisitor = new RegisterPinnedReference(); registerPinnedReferenceVisitor = (RegisterPinnedReference) BootstrapMemory.Allocate(typeof(RegisterPinnedReference)); // updateThreadReferenceVisitor = new UpdateThreadReference(); updateThreadReferenceVisitor = (UpdateThreadReference) BootstrapMemory.Allocate(typeof(UpdateThreadReference)); // forwardReferenceVisitor = new ForwardReferenceVisitor(); forwardReferenceVisitor = (ForwardReferenceVisitor) BootstrapMemory.Allocate(typeof(ForwardReferenceVisitor)); }