Closed Bug 1777231 Opened 2 years ago Closed 2 years ago

SharedArrayBuffer usage leads to out of memory error

Categories

(Core :: JavaScript Engine, defect)

Firefox 101
defect

Tracking

()

RESOLVED DUPLICATE of bug 1689948

People

(Reporter: tzvetelin.vassilev, Unassigned)

References

Details

Attachments

(1 file)

Attached file sab.html

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:101.0) Gecko/20100101 Firefox/101.0

Steps to reproduce:

Allocate list with SharedArrayBuffer instances

Actual results:

After instance 995, app crash with out of memory. This is under MacOS, under Windows & Linux number is 999. Size of buffers doesn't matters. Under Android buffers are about 300. You should be able to experience the issue with attached crash test.

Expected results:

Should be able to create as many instances as app needs.

Component: Untriaged → JavaScript Engine
Product: Firefox → Core

We have a buffer limit that I've wanted to redo for a while now. NI myself to take a look soonish.

Flags: needinfo?(jdemooij)
Depends on: 1778077
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(jdemooij)
Resolution: --- → DUPLICATE

The test case now works fine with the latest Firefox Nightly build. Thanks for reporting this!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: