Skip to content

Skip AutoAssertNoGc checks for applicable signatures#8807

Merged
fitzgen merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:faster-no-gc-calls
Jun 14, 2024
Merged

Skip AutoAssertNoGc checks for applicable signatures#8807
fitzgen merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:faster-no-gc-calls

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This commit skips the safety checks of AutoAssertNoGc for the duration of host calls where the types involved are statically known to not perform any GCs (e.g. integers and floats). This helps recover some performance loss from indirect calls made on entry/exit of an AutoAssertNoGc scope when the gc feature is enabled in Wasmtime.

This is in reference to this discussion

This commit skips the safety checks of `AutoAssertNoGc` for the duration
of host calls where the types involved are statically known to not
perform any GCs (e.g. integers and floats). This helps recover some
performance loss from indirect calls made on entry/exit of an
`AutoAssertNoGc` scope when the `gc` feature is enabled in Wasmtime.
@alexcrichton alexcrichton requested a review from a team as a code owner June 14, 2024 18:07
@alexcrichton alexcrichton requested review from pchickey and removed request for a team June 14, 2024 18:07
@fitzgen fitzgen enabled auto-merge June 14, 2024 18:13
@fitzgen fitzgen added this pull request to the merge queue Jun 14, 2024
Merged via the queue into bytecodealliance:main with commit 3e0f4b6 Jun 14, 2024
@alexcrichton alexcrichton deleted the faster-no-gc-calls branch June 14, 2024 18:43
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.

2 participants