Update to Cranelift 0.28.0.

Also region 2.0.0 and bindgen 0.47.1.
This commit is contained in:
Dan Gohman
2019-01-23 00:08:45 -08:00
parent 2ac0ceda14
commit 78f89f67a3
5 changed files with 7 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ cranelift-codegen = "0.28.0"
cranelift-entity = "0.28.0"
cranelift-wasm = "0.28.0"
wasmtime-environ = { path = "../environ", default-features = false }
region = "1.0.0"
region = "2.0.0"
lazy_static = "1.2.0"
libc = { version = "0.2.44", default-features = false }
errno = "0.2.4"
@@ -31,7 +31,7 @@ winapi = { version = "0.3.6", features = ["winbase", "memoryapi"] }
[build-dependencies]
cmake = "0.1.35"
bindgen = "0.46.0"
bindgen = "0.47.1"
regex = "1.0.6"
[features]

View File

@@ -117,7 +117,7 @@ impl LinearMemory {
new_mmap.as_mut_slice()[..copy_len].copy_from_slice(&self.mmap.as_slice()[..copy_len]);
self.mmap = new_mmap;
} else {
} else if delta_bytes > 0 {
// Make the newly allocated pages accessible.
self.mmap.make_accessible(prev_bytes, delta_bytes).ok()?;
}