Skip to content

GDA: memset/memcpy/memmove are not defined anymore in genericjs stdlibs#364

Merged
alexp-sssup merged 2 commits into
masterfrom
memfuncs-js
Apr 21, 2026
Merged

GDA: memset/memcpy/memmove are not defined anymore in genericjs stdlibs#364
alexp-sssup merged 2 commits into
masterfrom
memfuncs-js

Conversation

@yuri91
Copy link
Copy Markdown
Member

@yuri91 yuri91 commented Apr 21, 2026

@yuri91 yuri91 added the hydra Run hydra on this PR label Apr 21, 2026
free() is lowered by CGBuiltin to the cheerp_deallocate intrinsic, which
FreeAndDeleteRemoval routes through a __genericjs__free trampoline when
called from genericjs on a wasm target. The runtime path is safe, so
skip the FFI basic-pointer-parameter check for BIfree, matching the
existing bypass for memcpy/memmove/memset/realloc.
@alexp-sssup alexp-sssup merged commit d4eb694 into master Apr 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hydra Run hydra on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants