@@ -489,39 +489,6 @@ impl<VM: VMBinding> BasePlan<VM> {
489489 pages
490490 }
491491
492- pub fn trace_object < Q : ObjectQueue > (
493- & self ,
494- queue : & mut Q ,
495- object : ObjectReference ,
496- worker : & mut GCWorker < VM > ,
497- ) -> ObjectReference {
498- #[ cfg( feature = "code_space" ) ]
499- if self . code_space . in_space ( object) {
500- trace ! ( "trace_object: object in code space" ) ;
501- return self . code_space . trace_object :: < Q > ( queue, object) ;
502- }
503-
504- #[ cfg( feature = "code_space" ) ]
505- if self . code_lo_space . in_space ( object) {
506- trace ! ( "trace_object: object in large code space" ) ;
507- return self . code_lo_space . trace_object :: < Q > ( queue, object) ;
508- }
509-
510- #[ cfg( feature = "ro_space" ) ]
511- if self . ro_space . in_space ( object) {
512- trace ! ( "trace_object: object in ro_space space" ) ;
513- return self . ro_space . trace_object ( queue, object) ;
514- }
515-
516- #[ cfg( feature = "vm_space" ) ]
517- if self . vm_space . in_space ( object) {
518- trace ! ( "trace_object: object in boot space" ) ;
519- return self . vm_space . trace_object ( queue, object) ;
520- }
521-
522- VM :: VMActivePlan :: vm_trace_object :: < Q > ( queue, object, worker)
523- }
524-
525492 pub fn prepare ( & mut self , _tls : VMWorkerThread , _full_heap : bool ) {
526493 #[ cfg( feature = "code_space" ) ]
527494 self . code_space . prepare ( ) ;
@@ -621,27 +588,6 @@ impl<VM: VMBinding> CommonPlan<VM> {
621588 + self . base . get_used_pages ( )
622589 }
623590
624- pub fn trace_object < Q : ObjectQueue > (
625- & self ,
626- queue : & mut Q ,
627- object : ObjectReference ,
628- worker : & mut GCWorker < VM > ,
629- ) -> ObjectReference {
630- if self . immortal . in_space ( object) {
631- trace ! ( "trace_object: object in immortal space" ) ;
632- return self . immortal . trace_object ( queue, object) ;
633- }
634- if self . los . in_space ( object) {
635- trace ! ( "trace_object: object in los" ) ;
636- return self . los . trace_object ( queue, object) ;
637- }
638- if self . nonmoving . in_space ( object) {
639- trace ! ( "trace_object: object in nonmoving space" ) ;
640- return self . nonmoving . trace_object ( queue, object) ;
641- }
642- self . base . trace_object :: < Q > ( queue, object, worker)
643- }
644-
645591 pub fn prepare ( & mut self , tls : VMWorkerThread , full_heap : bool ) {
646592 self . immortal . prepare ( ) ;
647593 self . los . prepare ( full_heap) ;
0 commit comments