File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ pub(crate) use helpers::*;
2323pub ( crate ) use helpers_32:: * ;
2424pub ( crate ) use sanity:: SideMetadataSanity ;
2525
26+ /// Side metadata spec for VO bit. This is only available when the feature "vo_bit_access" is enabled.
27+ /// Check the comments on "vo_bit_access" in `Cargo.toml` before use. Use at your own risk.
2628#[ cfg( feature = "vo_bit_access" ) ]
2729pub const VO_BIT_SIDE_METADATA_SPEC : SideMetadataSpec =
2830 crate :: util:: metadata:: side_metadata:: spec_defs:: VO_BIT ;
Original file line number Diff line number Diff line change @@ -231,9 +231,15 @@ use crate::MMTK;
231231/// Objects in the VM space are allocated/managed by the binding. This functio provides a way for
232232/// the binding to set VO bit for an object in the space.
233233#[ cfg( feature = "vm_space" ) ]
234- pub fn set_vo_bit_for_vm_space_object < VM : VMBinding > ( mmtk : & ' static MMTK < VM > , object : ObjectReference ) {
234+ pub fn set_vo_bit_for_vm_space_object < VM : VMBinding > (
235+ mmtk : & ' static MMTK < VM > ,
236+ object : ObjectReference ,
237+ ) {
235238 use crate :: policy:: space:: Space ;
236- debug_assert ! ( mmtk. get_plan( ) . base( ) . vm_space. in_space( object) , "{} is not in VM space" , object) ;
239+ debug_assert ! (
240+ mmtk. get_plan( ) . base( ) . vm_space. in_space( object) ,
241+ "{} is not in VM space" ,
242+ object
243+ ) ;
237244 set_vo_bit ( object) ;
238245}
239-
You can’t perform that action at this time.
0 commit comments