Skip to content

Avoid using EM_ASM in sbrk.c #15945

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

Avoid using EM_ASM in sbrk.c #15945

merged 1 commit into from
Jan 11, 2022

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 10, 2022

I ran into some issues with the use of EM_ASM here related to SAFE_HEAP.
Its probably not a great idea to use EM_ASM in such a low level context.

I ran into some issues with the use of EM_ASM here related to SAFE_HEAP.
Its probably not a great idea to use EM_ASM in such a low level context.
@sbc100 sbc100 requested a review from juj January 10, 2022 22:46
@sbc100 sbc100 assigned kripken and unassigned kripken Jan 10, 2022
@sbc100 sbc100 requested a review from kripken January 10, 2022 22:50
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.

How about using EM_JS for this? It's a smaller change and it should be as effective in avoiding the issues you saw, I hope.

@sbc100
Copy link
Collaborator Author

sbc100 commented Jan 10, 2022

How about using EM_JS for this? It's a smaller change and it should be as effective in avoiding the issues you saw, I hope.

We tend not to use EM_ASM or EM_JS in our low level libraries... I tend to think thats a good thing. We could consider making more use of EM_JS in general, but I think that is outside the scope of this change.

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.

Fair point, sgtm.

sbc100 added a commit that referenced this pull request Jan 11, 2022
This change fixes all the failing tests in the wasm2s suite.
The final fix is in #15945.

Depends on WebAssembly/binaryen#4439.
@sbc100 sbc100 merged commit cc288c7 into main Jan 11, 2022
@sbc100 sbc100 deleted the memprofiler_library branch January 11, 2022 01:08
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