mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-29 08:31:32 +00:00
Improved docs on emscripten memory instantiation
This commit is contained in:
@ -468,6 +468,7 @@ impl Instance {
|
|||||||
let memory = if options.use_emscripten {
|
let memory = if options.use_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
|
||||||
|
// However, it should be: (initial * LinearMemory::PAGE_SIZE) == 16777216
|
||||||
LinearMemory::new(LinearMemory::MAX_PAGES as u32, None)
|
LinearMemory::new(LinearMemory::MAX_PAGES as u32, None)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user