|
|
|
|
|
by haberman
2307 days ago
|
|
> You'd only try that if you haven't read the documentation for mmap, just like a bunch of Rust programmers did. They started on 64-bit machines and never noticed that mmap is limited to a ~256MB window on most 32-bit architectures. Do you have a reference for that? I've never heard of this and I can't imagine the reason for such a limitation. |
|
..although in practive it might be hard to find 256MB of contiguous memory in a 4GB virtual memory space due to fragmentation of other allocations and shared libraries, especially with ASLR.