@@ -9,7 +9,6 @@ use crate::plan::Mutator;
99use crate :: policy:: immortalspace:: ImmortalSpace ;
1010use crate :: policy:: largeobjectspace:: LargeObjectSpace ;
1111use crate :: policy:: space:: Space ;
12- use crate :: scheduler:: gc_work:: ProcessEdgesWork ;
1312use crate :: scheduler:: * ;
1413use crate :: util:: alloc:: allocators:: AllocatorSelector ;
1514#[ cfg( feature = "analysis" ) ]
@@ -952,61 +951,6 @@ impl<VM: VMBinding> CommonPlan<VM> {
952951 self . base . release ( tls, full_heap)
953952 }
954953
955- /// Schedule all the common work packets
956- pub fn schedule_common <
957- P : Plan < VM = VM > ,
958- E : ProcessEdgesWork < VM = VM > ,
959- C : CopyContext < VM = VM > + GCWorkerLocal ,
960- > (
961- & self ,
962- plan : & ' static P ,
963- constraints : & ' static PlanConstraints ,
964- scheduler : & GCWorkScheduler < VM > ,
965- ) {
966- use crate :: scheduler:: gc_work:: * ;
967-
968- // Stop & scan mutators (mutator scanning can happen before STW)
969- scheduler. work_buckets [ WorkBucketStage :: Unconstrained ] . add ( StopMutators :: < E > :: new ( ) ) ;
970-
971- // Prepare global/collectors/mutators
972- scheduler. work_buckets [ WorkBucketStage :: Prepare ] . add ( Prepare :: < P , C > :: new ( plan) ) ;
973-
974- // VM-specific weak ref processing
975- scheduler. work_buckets [ WorkBucketStage :: RefClosure ] . add ( ProcessWeakRefs :: < E > :: new ( ) ) ;
976-
977- // Release global/collectors/mutators
978- scheduler. work_buckets [ WorkBucketStage :: Release ] . add ( Release :: < P , C > :: new ( plan) ) ;
979-
980- // Analysis GC work
981- #[ cfg( feature = "analysis" ) ]
982- {
983- use crate :: util:: analysis:: GcHookWork ;
984- scheduler. work_buckets [ WorkBucketStage :: Unconstrained ] . add ( GcHookWork ) ;
985- }
986-
987- // Sanity
988- #[ cfg( feature = "sanity" ) ]
989- {
990- use crate :: util:: sanity:: sanity_checker:: ScheduleSanityGC ;
991- scheduler. work_buckets [ WorkBucketStage :: Final ] . add ( ScheduleSanityGC :: < P , C > :: new ( plan) ) ;
992- }
993-
994- // Finalization
995- if !self . base . options . no_finalizer {
996- use crate :: util:: finalizable_processor:: { Finalization , ForwardFinalization } ;
997- // finalization
998- scheduler. work_buckets [ WorkBucketStage :: RefClosure ] . add ( Finalization :: < E > :: new ( ) ) ;
999- // forward refs
1000- if constraints. needs_forward_after_liveness {
1001- scheduler. work_buckets [ WorkBucketStage :: RefForwarding ]
1002- . add ( ForwardFinalization :: < E > :: new ( ) ) ;
1003- }
1004- }
1005-
1006- // Set EndOfGC to run at the end
1007- scheduler. set_finalizer ( Some ( EndOfGC ) ) ;
1008- }
1009-
1010954 pub fn stacks_prepared ( & self ) -> bool {
1011955 self . base . stacks_prepared ( )
1012956 }
0 commit comments