A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2017-October/150039.html below:

[Python-Dev] If aligned_alloc() is missing on your platform, please let us know.

[Python-Dev] If aligned_alloc() is missing on your platform, please let us know. [Python-Dev] If aligned_alloc() is missing on your platform, please let us know.Victor Stinner victor.stinner at gmail.com
Mon Oct 30 07:09:28 EDT 2017
2017-10-27 10:17 GMT+02:00 Stefan Krah <stefan at bytereef.org>:
> Victor wrote a patch and would like to avoid adding a (probably unnecessary)
> emulation function. I agree with that.
> (...)
> So if any platform does not have some form of aligned_alloc(), please
> speak up.

I'm not really opposed to implement an aligned allocator on top of an
existing allocator. I only propose to discuss that in a separated
issue. I wrote "PEP 445 -- Add new APIs to customize Python memory
allocators" to implement tracemalloc, but also because I was working
on a Python version patched to use custom memory allocators, different
than malloc()/free():
https://www.python.org/dev/peps/pep-0445/#rationale

IMHO only users of PyMem_SetAllocators() would need such "fallback". I
expect all modern platforms to provide a "aligned" memory allocator.

Victor
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4