@@ -80,7 +80,7 @@ pub unsafe fn mmtk_conservative_scan_task_stack(ta: *const jl_task_t) {
8080 log:: debug!( "Skip guard page: {}, {}" , active_start, guard_page_start) ;
8181 conservative_scan_range ( guard_page_start, active_start + size) ;
8282 } else {
83- log:: warn!( "Skip stack for {:?}" , ta) ;
83+ // log::warn!("Skip stack for {:?}", ta);
8484 }
8585}
8686pub unsafe fn mmtk_conservative_scan_task_registers ( ta : * const jl_task_t ) {
@@ -99,12 +99,12 @@ pub fn mmtk_conservative_scan_ptls_registers(ptls: &mut _jl_tls_states_t) {
9999}
100100// TODO: This scans the entire context type, which is slower.
101101// We actually only need to scan registers.
102- fn get_range < T > ( ctx : & T ) -> ( Address , Address ) {
102+ pub fn get_range < T > ( ctx : & T ) -> ( Address , Address ) {
103103 let start = Address :: from_ptr ( ctx) ;
104104 let ty_size = std:: mem:: size_of :: < T > ( ) ;
105105 ( start, start + ty_size)
106106}
107- fn conservative_scan_range ( lo : Address , hi : Address ) {
107+ pub fn conservative_scan_range ( lo : Address , hi : Address ) {
108108 // The high address is exclusive
109109 let hi = if hi. is_aligned_to ( BYTES_IN_ADDRESS ) {
110110 hi - BYTES_IN_ADDRESS
@@ -122,7 +122,7 @@ fn conservative_scan_range(lo: Address, hi: Address) {
122122 cursor -= BYTES_IN_ADDRESS ;
123123 }
124124}
125- fn is_potential_mmtk_object ( addr : Address ) -> Option < ObjectReference > {
125+ pub fn is_potential_mmtk_object ( addr : Address ) -> Option < ObjectReference > {
126126 if crate :: object_model:: is_addr_in_immixspace ( addr) {
127127 // We only care about immix space. If the object is in other spaces, we won't move them, and we don't need to pin them.
128128 memory_manager:: find_object_from_internal_pointer ( addr, usize:: MAX )
0 commit comments