Open Bug 1509318 Opened Last year Updated 2 months ago

Consider relaxing 4GB GC heap limit

Categories

(Core :: JavaScript: GC, enhancement, P3)

61 Branch
enhancement

Tracking

()

People

(Reporter: jonco, Unassigned)

References

(Blocks 1 open bug)

Details

Currently the GC heap is limited to 4GiB because the max bytes parameter is always passed in as a uint32_t (even though it's stored as a size_t internally).

Various comments in the browser suggest that passing 0xffffffff makes this unlimited, but this is not the case:

https://searchfox.org/mozilla-central/rev/8f89901f2d69d9783f946a7458a6d7ee70635a94/js/xpconnect/src/XPCJSRuntime.cpp#3058-3064

We should probably relax this limitation since people seem to be using hardware with enough RAM to hit this.

Maybe we should make the parameter specify KiB instead of bytes, or maybe treat 0xffffffff as a special case and make it mean unlimited.
Priority: -- → P5
Priority: P5 → P3

See Bug 1488480 Comment 16 for some details.

Depends on: 1530251
See Also: → 1509285
You need to log in before you can comment on or make changes to this bug.