Skip to content
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

[browser] avoid OOM in RentingGiganticArraySucceedsOrOOMs #105246

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Jul 22, 2024

For the browser, allocating 1.8gb on 32bit address space is no fun.
Especially with all the preceding and following allocations in the same test suite.

In MT build, it also needs to grow the size of linear memory via UI thread and synchronize it to all threads.

Contributes to #102040
Contributes to #102195

@pavelsavara pavelsavara added arch-wasm WebAssembly architecture area-System.Memory os-browser Browser variant of arch-wasm labels Jul 22, 2024
@pavelsavara pavelsavara added this to the 9.0.0 milestone Jul 22, 2024
@pavelsavara pavelsavara requested review from kg and maraf July 22, 2024 14:38
@pavelsavara pavelsavara self-assigned this Jul 22, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-memory
See info in area-owners.md if you want to be subscribed.

@pavelsavara pavelsavara marked this pull request as ready for review July 22, 2024 14:38
@kg
Copy link
Member

kg commented Jul 22, 2024

Should we disable this on 32-bit instead of on browser?

@pavelsavara
Copy link
Member Author

Should we disable this on 32-bit instead of on browser?

I don't know if there is another 32bit target still supported ? Anyway, they probably don't have problems with growing WASM linear memory and we don't see anything else to fail.

@pavelsavara
Copy link
Member Author

/ba-g CI failure is unrelated iOS timeout

@pavelsavara pavelsavara merged commit ed53f55 into dotnet:main Jul 22, 2024
82 of 84 checks passed
@pavelsavara pavelsavara deleted the browser_buffer_oom branch July 22, 2024 18:26
@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.Memory os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants