Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Increase number of initial MBlocks #474

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion asterius/rts/rts.memory.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class Memory {
this.staticMBlocks = static_mblocks;
this.initView();
this.capacity = this.buffer.byteLength / rtsConstants.mblock_size;
this.liveBitset = mask(this.capacity);
this.liveBitset = mask(static_mblocks);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion asterius/rts/rts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function newAsteriusInstance(req) {
initial: req.tableSlots
}),
__asterius_wasm_memory = new WebAssembly.Memory({
initial: req.staticMBlocks * (rtsConstants.mblock_size / 65536)
initial: (req.staticMBlocks + 3) * (rtsConstants.mblock_size / 65536)
}),
__asterius_memory = new Memory(),
__asterius_memory_trap = new MemoryTrap(
Expand Down