[space_map (rust)] Fix nr_allocated tracking in CoreSpaceMap

This commit is contained in:
Ming-Hung Tsai 2021-05-28 20:20:30 +08:00
parent 3a653eaa5f
commit b12530f580

View File

@ -103,6 +103,7 @@ where
if self.counts[b as usize] == V::from(0u8) {
self.counts[b as usize] = V::from(1u8);
self.first_free = b + 1;
self.nr_allocated += 1;
return Ok(Some(b));
}
}