[issue21233] Add *Calloc functions to CPython memory allocation API
Antoine Pitrou
report at bugs.python.org
Sun Apr 27 20:37:28 CEST 2014
Antoine Pitrou added the comment:
> $ gcc -o /tmp/test /tmp/test.c; /tmp/test
> malloc() returned NULL after 3050MB
> $ gcc -DDO_MEMSET -o /tmp/test /tmp/test.c; /tmp/test
> malloc() returned NULL after 2130MB
>
> Without memset, the kernel happily allocates until we reach the 3GB
> user address space limit.
> With memset, it bails out way before.
>
> I don't know what this'll give on 64-bit, but I assume one should get
> comparable result.
Both OOM here (3.11.0-20-generic, 64-bit, Ubuntu).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21233>
_______________________________________
More information about the Python-bugs-list
mailing list