Skip to content

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Oct 21, 2024

This is use on your own risk

Even when we try to make this work, we do not think it's good idea to allocate more than 256MB in a web page.

  • add new malloc which is wrapper over Module._malloc that returns uint32 rather than negative number above 2GB
  • fix receiving pointers when calling to JS on via ICALL
  • fix marshaling IntPtr as uint32 to JS, because typically it's used as offset to array
  • add Module parameter to preRun and other emscripten events. So that it could be used to test memory.
  • improved MemoryTest WBT to waste 2GB before starting the mono runtime.

@pavelsavara pavelsavara marked this pull request as ready for review October 24, 2024 17:17
@pavelsavara pavelsavara requested review from kg, maraf and ilonatommy and removed request for lewing, maraf and ilonatommy October 24, 2024 17:17
Copy link
Member

@kg kg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the incremental improvements you're making while doing this

pavelsavara and others added 2 commits October 25, 2024 11:17
Co-authored-by: Ilona Tomkowicz <32700855+ilonatommy@users.noreply.github.com>
Co-authored-by: Ilona Tomkowicz <32700855+ilonatommy@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants