• Tim Peters's avatar
    Now that we're no longer linking arenas together, there's no need to · 3c83df20
    Tim Peters yazdı
    waste the first pool if malloc happens to return a pool-aligned address.
    
    This means the number of pools per arena can now vary by 1.  Unfortunately,
    the code counted up from 0 to a presumed constant number of pools.  So
    changed the increasing "watermark" counter to a decreasing "nfreepools"
    counter instead, and fiddled various stuff accordingly.  This also allowed
    getting rid of two more macros.
    
    Also changed the code to align the first address to a pool boundary
    instead of a page boundary.  These are two parallel sets of macro #defines
    that happen to be identical now, but the page macros are in theory more
    restrictive (bigger), and there's simply no reason I can see that it
    wasn't aligning to the less restrictive pool size all along (the code
    only relies on pool alignment).
    
    Hmm.  The "page size" macros aren't used for anything *except* defining
    the pool size macros, and the comments claim the latter isn't necessary.
    So this has the feel of a layer of indirection that doesn't serve a
    purpose; should probably get rid of the page macros now.
    3c83df20
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...