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/2002-March/021941.html below:

[Python-Dev] pymalloc killer

[Python-Dev] pymalloc killer [Python-Dev] pymalloc killerMartin v. Loewis martin@v.loewis.de
30 Mar 2002 00:56:42 +0100
"David Abrahams" <david.abrahams@rcn.com> writes:

> OK, but I guess my question still holds: can't you just round down to
> find a supposed arena address, look up the index, and see if that arena
> is in the vector?

Arenas are not aligned on 256k boundaries. Instead, they are aligned
on 8-byte boundaries (or whatever else the system malloc returns); the
first up-to-four-k is wasted to align the first pool in the arena.

So to find the arena header when given a pool header, you'd have to
know the index of the pool in the arena, which would be more
complicated than Tim's computation.

Regards,
Martin



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