Skip to content

Commit 3f961fc

Browse files
committed
Release v0.6
Release vm-memory v0.6, with latest dirty track bitmap implementation. Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
1 parent 3e0ff7b commit 3f961fc

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22
## [Unreleased]
33

4+
## [v0.6.0]
5+
46
### Added
57

68
- [[#160]](https://github.com/rust-vmm/vm-memory/pull/160): Add `ArcRef` and `AtomicBitmapArc` bitmap

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[package]
22
name = "vm-memory"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
description = "Safe abstractions for accessing the VM physical memory"
55
keywords = ["memory"]
6+
categories = ["memory-management"]
67
authors = ["Liu Jiang <gerry@linux.alibaba.com>"]
78
repository = "https://github.com/rust-vmm/vm-memory"
89
readme = "README.md"

src/volatile_memory.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1563,9 +1563,12 @@ mod tests {
15631563
let a = VecMem::new(1);
15641564
let a_clone = a.clone();
15651565
let v_ref = a.get_ref::<u8>(0).unwrap();
1566+
let barrier = Arc::new(Barrier::new(2));
1567+
let barrier1 = barrier.clone();
1568+
15661569
v_ref.store(99);
15671570
spawn(move || {
1568-
sleep(Duration::from_millis(10));
1571+
barrier1.wait();
15691572
let clone_v_ref = a_clone.get_ref::<u8>(0).unwrap();
15701573
clone_v_ref.store(0);
15711574
});
@@ -1574,6 +1577,7 @@ mod tests {
15741577
// somehow and this helps to ensure the sleep actually happens before the store rather then
15751578
// being reordered by the compiler.
15761579
assert_eq!(v_ref.load(), 99);
1580+
barrier.wait();
15771581

15781582
// Granted we could have a machine that manages to perform this many volatile loads in the
15791583
// amount of time the spawned thread sleeps, but the most likely reason the retry limit will

0 commit comments

Comments
 (0)