mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-22 21:21:33 +00:00
Remove use of debug macro (#117)
This commit is contained in:
@ -60,7 +60,6 @@ impl LocalBacking {
|
|||||||
|
|
||||||
for (_, mem) in &module.memories {
|
for (_, mem) in &module.memories {
|
||||||
// If we use emscripten, we set a fixed initial and maximum
|
// If we use emscripten, we set a fixed initial and maximum
|
||||||
debug!("Instance - init memory ({}, {:?})", mem.min, mem.max);
|
|
||||||
// let memory = if options.abi == InstanceABI::Emscripten {
|
// let memory = if options.abi == InstanceABI::Emscripten {
|
||||||
// // We use MAX_PAGES, so at the end the result is:
|
// // We use MAX_PAGES, so at the end the result is:
|
||||||
// // (initial * LinearMemory::PAGE_SIZE) == LinearMemory::DEFAULT_HEAP_SIZE
|
// // (initial * LinearMemory::PAGE_SIZE) == LinearMemory::DEFAULT_HEAP_SIZE
|
||||||
|
@ -47,7 +47,6 @@ impl LinearMemory {
|
|||||||
pub(crate) fn new(mem: &Memory) -> Self {
|
pub(crate) fn new(mem: &Memory) -> Self {
|
||||||
assert!(mem.min <= Self::MAX_PAGES);
|
assert!(mem.min <= Self::MAX_PAGES);
|
||||||
assert!(mem.max.is_none() || mem.max.unwrap() <= Self::MAX_PAGES);
|
assert!(mem.max.is_none() || mem.max.unwrap() <= Self::MAX_PAGES);
|
||||||
debug!("Instantiate LinearMemory(mem: {:?})", mem);
|
|
||||||
|
|
||||||
let (mmap_size, initial_pages, offset_guard_size, requires_signal_catch) = if
|
let (mmap_size, initial_pages, offset_guard_size, requires_signal_catch) = if
|
||||||
/*mem.is_static_heap()*/
|
/*mem.is_static_heap()*/
|
||||||
|
Reference in New Issue
Block a user