Open Bug 1509318 Opened Last year Updated 2 months ago
Consider relaxing 4GB GC heap limit
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.
You need to log in before you can comment on or make changes to this bug.