Skip to content

Commit 8539de7

Browse files
committed
Rename zeroed to slow_path_zeroing
1 parent 1e61275 commit 8539de7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/policy/lockfreeimmortalspace.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub struct LockFreeImmortalSpace<VM: VMBinding> {
2424
/// Heap range end
2525
limit: Address,
2626
/// Zero memory after slow-path allocation
27-
zeroed: bool,
27+
slow_path_zeroing: bool,
2828
phantom: PhantomData<VM>,
2929
}
3030

@@ -97,20 +97,20 @@ impl<VM: VMBinding> Space<VM> for LockFreeImmortalSpace<VM> {
9797
if start + bytes > self.limit {
9898
panic!("OutOfMemory")
9999
}
100-
if self.zeroed {
100+
if self.slow_path_zeroing {
101101
crate::util::memory::zero(start, bytes);
102102
}
103103
start
104104
}
105105
}
106106

107107
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 {
109109
Self {
110110
name,
111111
cursor: AtomicUsize::new(AVAILABLE_START.as_usize()),
112112
limit: AVAILABLE_END,
113-
zeroed,
113+
slow_path_zeroing,
114114
phantom: PhantomData,
115115
}
116116
}

0 commit comments

Comments
 (0)