Skip to content
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

CFGWalker with single-thread fixes #6573

Merged
merged 1 commit into from
May 9, 2024

Conversation

XMadrid
Copy link
Contributor

@XMadrid XMadrid commented May 8, 2024

fix #6557

@XMadrid
Copy link
Contributor Author

XMadrid commented May 8, 2024

Should I add a test case using CFGWalker with single-thread in test/gtest/ ?

@kripken
Copy link
Member

kripken commented May 8, 2024

Code here looks good.

About a test, if it's simple to make one then it sounds like a good idea. Perhaps the test can do something like

Walker walker;
walker.walk();
Walker fresh;
assert(walker == fresh); // walker should have no changes left

But I'm not sure if that can work. I'd be ok landing this without a test if testing isn't easy.

@XMadrid
Copy link
Contributor Author

XMadrid commented May 9, 2024

Code here looks good.

About a test, if it's simple to make one then it sounds like a good idea. Perhaps the test can do something like

Walker walker;
walker.walk();
Walker fresh;
assert(walker == fresh); // walker should have no changes left

But I'm not sure if that can work. I'd be ok landing this without a test if testing isn't easy.

It's not easy to do such an assertion, I agree that we can merge this without a test.

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.

Sounds good, let's land this as-is. Thanks for the PR!

@kripken kripken merged commit 712ad9d into WebAssembly:main May 9, 2024
13 checks passed
@gkdn gkdn mentioned this pull request Aug 31, 2024
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.

CFGWalker with Single-thread failed
2 participants