Daniel Sedlak
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
crates/wasmtime/src/runtime/func.rs
-
crates/wasmtime/src/runtime/vm/mmap.rs
|
|
@ -315,7 +315,7 @@ enum FuncKind { |
|
|
|
/// is dropped.
|
|
|
|
///
|
|
|
|
/// Note that this is intentionally placed behind a `Box` to minimize the
|
|
|
|
/// size of this enum since the most common variant for high-peformance
|
|
|
|
/// size of this enum since the most common variant for high-performance
|
|
|
|
/// situations is `SharedHost` and `StoreOwned`, so this ideally isn't
|
|
|
|
/// larger than those two.
|
|
|
|
Host(Box<HostFunc>), |
|
|
|
|
|
@ -153,7 +153,7 @@ impl Mmap { |
|
|
|
/// Return the length of the allocated memory.
|
|
|
|
///
|
|
|
|
/// This is the byte length of this entire mapping which includes both
|
|
|
|
/// addressible and non-addressible memory.
|
|
|
|
/// addressable and non-addressable memory.
|
|
|
|
#[inline] |
|
|
|
pub fn len(&self) -> usize { |
|
|
|
self.sys.len() |
|
|
|