make the allocator take a special path for allocations bigger than 2GB; fixes #7120
This commit is contained in:
parent
c3d544221b
commit
6d4107b783
2 changed files with 30 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue