File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub struct LockFreeImmortalSpace<VM: VMBinding> {
24
24
/// Heap range end
25
25
limit : Address ,
26
26
/// Zero memory after slow-path allocation
27
- zeroed : bool ,
27
+ slow_path_zeroing : bool ,
28
28
phantom : PhantomData < VM > ,
29
29
}
30
30
@@ -97,20 +97,20 @@ impl<VM: VMBinding> Space<VM> for LockFreeImmortalSpace<VM> {
97
97
if start + bytes > self . limit {
98
98
panic ! ( "OutOfMemory" )
99
99
}
100
- if self . zeroed {
100
+ if self . slow_path_zeroing {
101
101
crate :: util:: memory:: zero ( start, bytes) ;
102
102
}
103
103
start
104
104
}
105
105
}
106
106
107
107
impl < VM : VMBinding > LockFreeImmortalSpace < VM > {
108
- pub fn new ( name : & ' static str , zeroed : bool ) -> Self {
108
+ pub fn new ( name : & ' static str , slow_path_zeroing : bool ) -> Self {
109
109
Self {
110
110
name,
111
111
cursor : AtomicUsize :: new ( AVAILABLE_START . as_usize ( ) ) ,
112
112
limit : AVAILABLE_END ,
113
- zeroed ,
113
+ slow_path_zeroing ,
114
114
phantom : PhantomData ,
115
115
}
116
116
}
You can’t perform that action at this time.
0 commit comments