• Tim Peters's avatar
    It's once again thought safe to call the pymalloc free/realloc with an · c2ce91af
    Tim Peters yazdı
    address obtained from system malloc/realloc without holding the GIL.
    
    When the vector of arena base addresses has to grow, the old vector is
    deliberately leaked.  This makes "stale" x-thread references safe.
    arenas and narenas are also declared volatile, and changed in an order
    that prevents a thread from picking up a value of narenas too large
    for the value of arenas it sees.
    
    Added more asserts.
    
    Fixed an old inaccurate comment.
    
    Added a comment explaining why it's safe to call pymalloc free/realloc
    with an address obtained from system malloc/realloc even when arenas is
    still NULL (this is obscure, since the ADDRESS_IN_RANGE macro
    appears <wink> to index into arenas).
    c2ce91af
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...