make the allocator take a special path for allocations bigger than 2GB; fixes #7120

This commit is contained in:
Araq 2018-02-27 01:46:52 +01:00
commit 6d4107b783
2 changed files with 30 additions and 2 deletions

View file

@ -15,6 +15,10 @@ proc main =
quit "could not serve request!"
dealloc p
# c_fprintf(stdout, "iteration: %ld size: %ld\n", i, size)
when defined(cpu64):
# bug #7120
var x = alloc(((1 shl 29) - 4) * 8)
dealloc x
main()