File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -450,6 +450,9 @@ impl<VM: VMBinding> ImmixSpace<VM> {
450
450
self . scheduler . work_buckets [ WorkBucketStage :: ClearVOBits ] . bulk_add ( work_packets) ;
451
451
}
452
452
}
453
+
454
+ #[ cfg( feature = "count_live_bytes_immixspace" ) ]
455
+ self . set_live_bytes ( 0 ) ;
453
456
}
454
457
455
458
/// Release for the immix space. This is called when a GC finished.
@@ -847,6 +850,11 @@ impl<VM: VMBinding> ImmixSpace<VM> {
847
850
self . live_bytes_in_immixspace . load ( Ordering :: SeqCst )
848
851
}
849
852
853
+ #[ cfg( feature = "count_live_bytes_immixspace" ) ]
854
+ pub fn set_live_bytes ( & self , size : usize ) {
855
+ self . live_bytes_in_immixspace . store ( size, Ordering :: SeqCst )
856
+ }
857
+
850
858
#[ cfg( feature = "count_live_bytes_immixspace" ) ]
851
859
pub fn increase_live_bytes ( & self , size : usize ) {
852
860
self . live_bytes_in_immixspace
You can’t perform that action at this time.
0 commit comments