This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients loewis, pitrou, sable, tim.peters
Date 2008-09-08.03:21:21
SpamBayes Score 2.1635486e-05
Marked as misclassified No
Message-id <48C49A30.9000800@v.loewis.de>
In-reply-to <1220835127.56.0.0764264373645.issue3526@psf.upfronthosting.co.za>
Content
> OTOH, if for some compelling reason it's believed Python knows better
> than platform vendors, then obmalloc should be uglied-up on all paths to
> make the enlightened choice.

I'm proposing that obmalloc is changed to know better than system malloc
on systems supporting anonymous mmap, and Windows, and that the call

   malloc(ARENA_SIZE)

is replaced by mmap. This has the advantage of doing better than system
malloc on Solaris, plus it also might guarantee that arenas will be
POOL_SIZE aligned.

OTOH, the calls

  realloc(arenas, nbytes)
  malloc(nbytes)

should continue to go to system malloc, because they are typically
not multiples of the system page size.
History
Date User Action Args
2008-09-08 03:21:23loewissetrecipients: + loewis, tim.peters, pitrou, sable
2008-09-08 03:21:22loewislinkissue3526 messages
2008-09-08 03:21:21loewiscreate