-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Reapply "Prefer calloc
over of malloc+zeroMemory. NFC"
#22596
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
…core#22568) This reverts commit 50e0b07.
See the second commit in this PR for the fix to the lsan issue. |
LGTM; can you also mention in the commit message that this makes the calloc symbol handled more like malloc and free? |
This seems to be breaking test_externref_emjs_dynlink in UBSan mode:
|
test_externref_emjs_dylink uses MAIN_MODULE=2. |
The |
ah. so can we fix it by just adding that to the deps? or maybe conditionally? |
This change reverts part of emscripten-core#22596. A better fix for this would be to add the missing deps to `--symbols-only` but this change seems like the quickest fix.
This change reverts part of emscripten-core#22596. A better fix for this would be to add the missing deps to `--symbols-only` but this change seems like the quickest fix.
(a) fix is here: #22650 |
This change reverts part of #22596. A better fix for this would be to add the missing deps to `--symbols-only` but this change seems like the quickest fix.
This reverts commit 50e0b07.
This change also adds calloc to the list of symbols that we provide
emscripten_builtin_
variants for.