We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ab28c8 commit 57e55ccCopy full SHA for 57e55cc
crates/wasmtime/src/runtime/vm/sys/unix/pagemap.rs
@@ -169,7 +169,7 @@ pub unsafe fn reset_with_pagemap(
169
// Keeping less than one page of memory resident when the original
170
// mapping itself is also less than a page? Also fall back to the
171
// default behavior as this'll just be a simple memcpy.
172
- if keep_resident.byte_count() <= host_page_size && len <= host_page_size {
+ if keep_resident.byte_count() <= host_page_size && len.byte_count() <= host_page_size {
173
pagemap = None;
174
}
175
0 commit comments