Skip to content

Fix wasm2s (SAFE_HEAP) test suite #15944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 11, 2022
Merged

Fix wasm2s (SAFE_HEAP) test suite #15944

merged 1 commit into from
Jan 11, 2022

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 10, 2022

This change fixes all but 1 failing tests in the wasm2s suite. The final fix is in #15945.

My goal here is to enable this test suite on the emscripten-releases waterfall:
https://chromium-review.googlesource.com/c/emscripten-releases/+/3378856

@sbc100 sbc100 requested a review from kripken January 10, 2022 22:18
@sbc100 sbc100 force-pushed the safe_heap branch 2 times, most recently from b45172c to d7c4935 Compare January 10, 2022 22:49
@sbc100 sbc100 changed the base branch from main to memprofiler_library January 10, 2022 22:49
@sbc100 sbc100 force-pushed the safe_heap branch 2 times, most recently from 169d8d6 to de1191e Compare January 10, 2022 23:04
@sbc100 sbc100 changed the base branch from memprofiler_library to main January 10, 2022 23:04
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Breakage risk seems low as SAFE_HEAP is a rare mode, I'd guess, so this seems reasonable.

OTOH if this is specific to minimal runtime, maybe we should only change things there? I am just wondering if there are cases where someone has a good reason for SAFE_HEAP without the extra logic of assertions. Like maybe a bug appears only when assertions are disabled.

This change fixes all the failing tests in the wasm2s suite.

Depends on WebAssembly/binaryen#4439.
@sbc100 sbc100 enabled auto-merge (squash) January 10, 2022 23:54
@sbc100 sbc100 requested a review from kripken January 10, 2022 23:55
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Thanks, this does seem safer.

@sbc100 sbc100 merged commit 0b6879a into main Jan 11, 2022
@sbc100 sbc100 deleted the safe_heap branch January 11, 2022 00:55
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