Skip to content

x64: improve tests for heap_addr#4841

Merged
abrown merged 2 commits intobytecodealliance:mainfrom
abrown:heap-addr-tests
Sep 1, 2022
Merged

x64: improve tests for heap_addr#4841
abrown merged 2 commits intobytecodealliance:mainfrom
abrown:heap-addr-tests

Conversation

@abrown
Copy link
Copy Markdown
Member

@abrown abrown commented Sep 1, 2022

This change adds Cranelift compile tests for the various cases for
heap_addr. The idea behind this is to more clearly show what the
penalties are for dynamically- vs statically-allocated memory as well as
turning Spectre mitigations on and off.

This change adds Cranelift `compile` tests for the various cases for
`heap_addr`. The idea behind this is to more clearly show what the
penalties are for dynamically- vs statically-allocated memory as well as
turning Spectre mitigations on and off.
@abrown abrown requested a review from cfallin September 1, 2022 17:50
@abrown
Copy link
Copy Markdown
Member Author

abrown commented Sep 1, 2022

I can remove the comments explaining what is going on and store those somewhere else if that is preferable.

@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Sep 1, 2022
Copy link
Copy Markdown
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good -- thanks for spelling out these cases; it's a useful analysis and we can keep it updated if we come up with better bounds-checking sequences.

@abrown abrown marked this pull request as ready for review September 1, 2022 20:59
@abrown abrown merged commit ac2d4c4 into bytecodealliance:main Sep 1, 2022
@abrown abrown deleted the heap-addr-tests branch September 1, 2022 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants