@@ -16,7 +16,7 @@ use crate::util::metadata::side_metadata::SideMetadataSpec;
16
16
#[ cfg( feature = "vo_bit" ) ]
17
17
use crate :: util:: metadata:: vo_bit;
18
18
use crate :: util:: metadata:: { self , MetadataSpec } ;
19
- use crate :: util:: object_forwarding as ForwardingWord ;
19
+ use crate :: util:: object_forwarding;
20
20
use crate :: util:: { Address , ObjectReference } ;
21
21
use crate :: vm:: * ;
22
22
use crate :: {
@@ -91,8 +91,8 @@ impl<VM: VMBinding> SFT for ImmixSpace<VM> {
91
91
return None ;
92
92
}
93
93
94
- if ForwardingWord :: is_forwarded :: < VM > ( object) {
95
- Some ( ForwardingWord :: read_forwarding_pointer :: < VM > ( object) )
94
+ if object_forwarding :: is_forwarded :: < VM > ( object) {
95
+ Some ( object_forwarding :: read_forwarding_pointer :: < VM > ( object) )
96
96
} else {
97
97
None
98
98
}
@@ -110,7 +110,7 @@ impl<VM: VMBinding> SFT for ImmixSpace<VM> {
110
110
}
111
111
112
112
// If the object is forwarded, it is live, too.
113
- ForwardingWord :: is_forwarded :: < VM > ( object)
113
+ object_forwarding :: is_forwarded :: < VM > ( object)
114
114
}
115
115
#[ cfg( feature = "object_pinning" ) ]
116
116
fn pin_object ( & self , object : ObjectReference ) -> bool {
@@ -581,14 +581,14 @@ impl<VM: VMBinding> ImmixSpace<VM> {
581
581
#[ cfg( feature = "vo_bit" ) ]
582
582
vo_bit:: helper:: on_trace_object :: < VM > ( object) ;
583
583
584
- let forwarding_status = ForwardingWord :: attempt_to_forward :: < VM > ( object) ;
585
- if ForwardingWord :: state_is_forwarded_or_being_forwarded ( forwarding_status) {
584
+ let forwarding_status = object_forwarding :: attempt_to_forward :: < VM > ( object) ;
585
+ if object_forwarding :: state_is_forwarded_or_being_forwarded ( forwarding_status) {
586
586
// We lost the forwarding race as some other thread has set the forwarding word; wait
587
587
// until the object has been forwarded by the winner. Note that the object may not
588
588
// necessarily get forwarded since Immix opportunistically moves objects.
589
589
#[ allow( clippy:: let_and_return) ]
590
590
let new_object =
591
- ForwardingWord :: spin_and_get_forwarded_object :: < VM > ( object, forwarding_status) ;
591
+ object_forwarding :: spin_and_get_forwarded_object :: < VM > ( object, forwarding_status) ;
592
592
#[ cfg( debug_assertions) ]
593
593
{
594
594
if new_object == object {
@@ -611,7 +611,7 @@ impl<VM: VMBinding> ImmixSpace<VM> {
611
611
} else if self . is_marked ( object) {
612
612
// We won the forwarding race but the object is already marked so we clear the
613
613
// forwarding status and return the unmoved object
614
- ForwardingWord :: clear_forwarding_bits :: < VM > ( object) ;
614
+ object_forwarding :: clear_forwarding_bits :: < VM > ( object) ;
615
615
object
616
616
} else {
617
617
// We won the forwarding race; actually forward and copy the object if it is not pinned
@@ -620,7 +620,7 @@ impl<VM: VMBinding> ImmixSpace<VM> {
620
620
|| ( !nursery_collection && self . defrag . space_exhausted ( ) )
621
621
{
622
622
self . attempt_mark ( object, self . mark_state ) ;
623
- ForwardingWord :: clear_forwarding_bits :: < VM > ( object) ;
623
+ object_forwarding :: clear_forwarding_bits :: < VM > ( object) ;
624
624
Block :: containing :: < VM > ( object) . set_state ( BlockState :: Marked ) ;
625
625
626
626
#[ cfg( feature = "vo_bit" ) ]
@@ -634,7 +634,7 @@ impl<VM: VMBinding> ImmixSpace<VM> {
634
634
// Clippy complains if the "vo_bit" feature is not enabled.
635
635
#[ allow( clippy:: let_and_return) ]
636
636
let new_object =
637
- ForwardingWord :: forward_object :: < VM > ( object, semantics, copy_context) ;
637
+ object_forwarding :: forward_object :: < VM > ( object, semantics, copy_context) ;
638
638
639
639
#[ cfg( feature = "vo_bit" ) ]
640
640
vo_bit:: helper:: on_object_forwarded :: < VM > ( new_object) ;
0 commit comments