4 ms·
I thought the memory limit (in V8 at least) was 2GB due to the GC not wanting to pass 64 bit pointers around, and using the high bit of a 32-bit offset for .. s
by jesse__ 4y ago
I thought the memory limit (in V8 at least) was 2GB due to the GC not wanting to pass 64 bit pointers around, and using the high bit of a 32-bit offset for .. something I now forget ..?
Do you have a source showing a JS runtime with a 1GB limit?
- jesse__ 4y agoUPDATE: After a nominal amount of googling around it appears valid sizes have increased on 64-bit systems to a maximum of 8GB, and stayed at 2GB on 32-bit systems, for FF at least. I guess it's probably 'implementation defined' https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Invalid_array_length https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer#resizing_arraybuffers https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...