-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Move emscripten_get_heap_size to native code #13695
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
bf789eb
to
3b6e53e
Compare
ed30241
to
b598191
Compare
b598191
to
e3855c3
Compare
I ended up moving emscripten_resize_heap to native code too to avoid the reverse dependency. PTAL. I'm open to better names for |
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.
resize_heap_internal
sounds fine as we don't intend this for users to call directly. Maybe it should also have a __
prefix? not sure if we do that anywhere else.
If we go with the All symbols that get imported from JS do end up in the global linker symbol table (even if they are not in header files like this one), so I do think that all JS imports should have some kind of name prefix (either |
Good point. Yeah, then |
14a1442
to
820a8a6
Compare
a95b4a8
to
018dd42
Compare
018dd42
to
540e28c
Compare
This is a partial revert of #13695 which broke test_zzz_zzz_emmalloc_4gb. The `oldSize` argument was being interpreted by signed by JS. Simpler just to read it directly rather than use the wrapper function.
This is a partial revert of #13695 which broke test_zzz_zzz_emmalloc_4gb. The `oldSize` argument was being interpreted by signed by JS. Simpler just to read it directly rather than use the wrapper function.
This is a partial revert of #13695 which broke test_zzz_zzz_emmalloc_4gb. The `oldSize` argument was being interpreted by signed by JS. Simpler just to read it directly rather than use the wrapper function.
This is a partial revert of #13695 which broke test_zzz_zzz_emmalloc_4gb. The `oldSize` argument was being interpreted by signed by JS. Simpler just to read it directly rather than use the wrapper function.
This is a partial revert of #13695 which broke test_zzz_zzz_emmalloc_4gb. The `oldSize` argument was being interpreted by signed by JS. Simpler just to read it directly rather than use the wrapper function.
This is good for standalone mode and is a useful precursor to #13688