@@ -12,7 +12,6 @@ use crate::{BUILDER, DISABLED_GC, MUTATORS, USER_TRIGGERED_GC};
1212use libc:: c_char;
1313use log:: * ;
1414use mmtk:: memory_manager;
15- use mmtk:: scheduler:: GCController ;
1615use mmtk:: scheduler:: GCWorker ;
1716use mmtk:: util:: opaque_pointer:: * ;
1817use mmtk:: util:: { Address , ObjectReference , OpaquePointer } ;
@@ -132,15 +131,6 @@ pub extern "C" fn mmtk_gc_init(
132131 }
133132}
134133
135- #[ no_mangle]
136- pub extern "C" fn mmtk_start_control_collector (
137- tls : VMWorkerThread ,
138- gc_controller : * mut GCController < JuliaVM > ,
139- ) {
140- let mut gc_controller = unsafe { Box :: from_raw ( gc_controller) } ;
141- memory_manager:: start_control_collector ( & SINGLETON , tls, & mut gc_controller) ;
142- }
143-
144134#[ no_mangle]
145135pub extern "C" fn mmtk_bind_mutator ( tls : VMMutatorThread , tid : usize ) -> * mut Mutator < JuliaVM > {
146136 let mutator_box = memory_manager:: bind_mutator ( & SINGLETON , tls) ;
@@ -231,8 +221,8 @@ pub extern "C" fn mmtk_will_never_move(object: ObjectReference) -> bool {
231221
232222#[ no_mangle]
233223pub extern "C" fn mmtk_start_worker ( tls : VMWorkerThread , worker : * mut GCWorker < JuliaVM > ) {
234- let mut worker = unsafe { Box :: from_raw ( worker) } ;
235- memory_manager:: start_worker :: < JuliaVM > ( & SINGLETON , tls, & mut worker)
224+ let worker = unsafe { Box :: from_raw ( worker) } ;
225+ memory_manager:: start_worker :: < JuliaVM > ( & SINGLETON , tls, worker)
236226}
237227
238228#[ no_mangle]
@@ -477,14 +467,6 @@ pub extern "C" fn mmtk_start_spawned_worker_thread(
477467 mmtk_start_worker ( tls, ctx) ;
478468}
479469
480- #[ no_mangle]
481- pub extern "C" fn mmtk_start_spawned_controller_thread (
482- tls : VMWorkerThread ,
483- ctx : * mut GCController < JuliaVM > ,
484- ) {
485- mmtk_start_control_collector ( tls, ctx) ;
486- }
487-
488470#[ inline( always) ]
489471pub fn store_obj_size ( obj : ObjectReference , size : usize ) {
490472 let addr_size = obj. to_raw_address ( ) - 16 ;
0 commit comments