Skip to content

Insert fuel/epoch checks in bulk copies/fills#13393

Open
alexcrichton wants to merge 2 commits into
bytecodealliance:mainfrom
alexcrichton:fuel
Open

Insert fuel/epoch checks in bulk copies/fills#13393
alexcrichton wants to merge 2 commits into
bytecodealliance:mainfrom
alexcrichton:fuel

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This commit builds on previous refactors to enable splitting up large bulk copies/fills into chunks with explicit preemption checks between them. This additionally consumes fuel proportional to the size of the operation as opposed to previously where a constant amount of fuel was consumed regardless.

This notably does not handle instructions like memory.init nor table.copy. That'll come in a future commit.

cc #13387

This commit builds on previous refactors to enable splitting up large
bulk copies/fills into chunks with explicit preemption checks between
them. This additionally consumes fuel proportional to the size of the
operation as opposed to previously where a constant amount of fuel was
consumed regardless.

This notably does not handle instructions like `memory.init` nor
`table.copy`. That'll come in a future commit.

cc bytecodealliance#13387
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant