File tree Expand file tree Collapse file tree 5 files changed +14
-14
lines changed Expand file tree Collapse file tree 5 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ probe = "0.5"
3636features = [" is_mmtk_object" , " object_pinning" ]
3737
3838# Uncomment the following lines to use mmtk-core from the official repository.
39- git = " https://github.com/mmtk /mmtk-core.git"
40- rev = " d291cda52790a34ed10bf72b4c5e27c3ab89a242 "
39+ git = " https://github.com/wks /mmtk-core.git"
40+ rev = " 20e56c25713fc42ec6747f9a38d9c7f4fa820f12 "
4141
4242# Uncomment the following line to use mmtk-core from a local repository.
4343# path = "../../mmtk-core"
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ pub extern "C" fn mmtk_post_alloc(
148148
149149#[ no_mangle]
150150pub extern "C" fn mmtk_will_never_move ( object : ObjectReference ) -> bool {
151- !object. is_movable ( )
151+ !object. is_movable :: < Ruby > ( )
152152}
153153
154154#[ no_mangle]
@@ -199,18 +199,18 @@ pub extern "C" fn mmtk_total_bytes() -> usize {
199199
200200#[ no_mangle]
201201pub extern "C" fn mmtk_is_reachable ( object : ObjectReference ) -> bool {
202- object. is_reachable ( )
202+ object. is_reachable :: < Ruby > ( )
203203}
204204
205205#[ no_mangle]
206206pub extern "C" fn mmtk_is_live_object ( object : ObjectReference ) -> bool {
207- memory_manager:: is_live_object ( object)
207+ memory_manager:: is_live_object :: < Ruby > ( object)
208208}
209209
210210#[ no_mangle]
211211pub extern "C" fn mmtk_get_forwarded_object ( object : ObjectReference ) -> ObjectReference {
212212 object
213- . get_forwarded_object ( )
213+ . get_forwarded_object :: < Ruby > ( )
214214 . unwrap_or ( ObjectReference :: NULL )
215215}
216216
Original file line number Diff line number Diff line change @@ -70,8 +70,8 @@ impl PPPRegistry {
7070
7171 probe ! ( mmtk_ruby, remove_dead_ppps_start, ppps. len( ) ) ;
7272 ppps. retain_mut ( |obj| {
73- if obj. is_live ( ) {
74- * obj = obj. get_forwarded_object ( ) . unwrap_or ( * obj) ;
73+ if obj. is_live :: < Ruby > ( ) {
74+ * obj = obj. get_forwarded_object :: < Ruby > ( ) . unwrap_or ( * obj) ;
7575 true
7676 } else {
7777 log:: trace!( " PPP removed: {}" , * obj) ;
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ impl GCWork<Ruby> for ProcessObjFreeCandidates {
122122 let mut new_candidates = Vec :: new ( ) ;
123123
124124 for object in obj_free_candidates. iter ( ) . copied ( ) {
125- if object. is_reachable ( ) {
125+ if object. is_reachable :: < Ruby > ( ) {
126126 // Forward and add back to the candidate list.
127127 let new_object = object. forward ( ) ;
128128 trace ! (
@@ -216,6 +216,6 @@ trait Forwardable {
216216
217217impl Forwardable for ObjectReference {
218218 fn forward ( & self ) -> Self {
219- self . get_forwarded_object ( ) . unwrap_or ( * self )
219+ self . get_forwarded_object :: < Ruby > ( ) . unwrap_or ( * self )
220220 }
221221}
You can’t perform that action at this time.
0 commit comments