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-June/148115.html below:

[Python-Dev] The untuned tunable parameter ARENA_SIZE

[Python-Dev] The untuned tunable parameter ARENA_SIZE [Python-Dev] The untuned tunable parameter ARENA_SIZELarry Hastings larry at hastings.org
Thu Jun 1 04:45:56 EDT 2017
On 06/01/2017 01:41 AM, Larry Hastings wrote:
> On 06/01/2017 01:19 AM, Antoine Pitrou wrote:
>> malloc() you said?  Arenas are allocated using mmap() nowadays, right?
> malloc() and free().  See _PyObject_ArenaMalloc (etc) in 
> Objects/obmalloc.c.

Oh, sorry, I forgot how to read.  If ARENAS_USE_MMAP is on it uses 
mmap().  I can't figure out when or how MAP_ANONYMOUS gets set, but if I 
step into the _PyObject_Arena.alloc() it indeed calls 
_PyObject_ArenaMmap() which uses mmap().  So, huzzah!, we use mmap() to 
allocate our enormous 256kb arenas.


//arry/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170601/5e19997e/attachment.html>
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