VIP inspection tooling #4
|
@ -238,11 +238,10 @@ impl MemoryRegion {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn update(&self, data: &[u8]) {
|
pub fn update(&self, data: &[u8]) {
|
||||||
let gens: Vec<u64> = self
|
let gens = self
|
||||||
.gens
|
.gens
|
||||||
.iter()
|
.each_ref()
|
||||||
.map(|i| i.load(std::sync::atomic::Ordering::Acquire))
|
.map(|i| i.load(std::sync::atomic::Ordering::Acquire));
|
||||||
.collect();
|
|
||||||
let next_gen = gens.iter().max().unwrap() + 1;
|
let next_gen = gens.iter().max().unwrap() + 1;
|
||||||
let indices = gens
|
let indices = gens
|
||||||
.into_iter()
|
.into_iter()
|
||||||
|
|
Loading…
Reference in New Issue