-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[emmalloc] Fix verbose output #23069
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
Conversation
`toString()` is undeclared. Fixes a regression introduced in commit 04a0cad.
|
Details: |
|
Are we missing a test for |
|
Yes, looks like that isn't covered by any existing test. Might be worth adding, but it is a setting for internal debugging. |
|
It looks like this is being covered here: Line 797 in a6ecc86
emscripten/test/test_browser.py Line 5229 in a6ecc86
However, these tests do not verify the debug prints. I'm not sure if that would be useful. |
But you could add |
Ah, good point. Addressed with commit 6fef505, PTAL. |
| }) | ||
| def test_emmalloc(self, *args): | ||
| if '-DEMMALLOC_VERBOSE' in args and self.is_wasm64(): | ||
| self.skipTest('EMMALLOC_VERBOSE is not compatible with wasm64') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh nice to see this skip being removed!
test/test_core.py
Outdated
| if '-DEMMALLOC_VERBOSE' in args and self.is_wasm64(): | ||
| self.skipTest('EMMALLOC_VERBOSE is not compatible with wasm64') | ||
| self.maybe_closure() | ||
| self.set_setting('DEFAULT_LIBRARY_FUNCS_TO_INCLUDE', ['$ptrToString']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this line should be needed.
Can we instead add EM_JS_DEPS(deps, "$ptrToString"); to emmalloc.c?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required by `emmalloc_{dump,validate}_memory_regions()`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm and that test failure on CI looks unrelated.
toString() was undeclared. Fixes a regression introduced in commit 04a0cad.
toString()is undeclared.Fixes a regression introduced in commit 04a0cad.