3 ms·
Somewhere in the source of Go will be the number 536870912, change this number to 134217728. Problem should largely be solved. Note: I'm not a Go dev, or have
by fleitz 15y ago
Somewhere in the source of Go will be the number 536870912, change this number to 134217728. Problem should largely be solved.
Note: I'm not a Go dev, or have even programmed in it, but logically it should be a quick fix that you can try to save you rewriting your codebase.
Given the importance of the number it's probably a #define or constant so should be pretty easy to find in one of the header files.
- 4ad 15y agoIt's 512<<20, and a proper way to fix it, on Windows, at least, would be to reserve the address space in the PE header, not ask the operating system in the process initialization path.