[Python-Dev] pymalloc killer
Tim Peters
tim.one@comcast.net
Sat, 30 Mar 2002 15:49:35 -0500
Heh -- letting old vectors leak may still not be good enough. Martin posted
the relevant code:
((I) < narenas && (uptr)(P) - arenas[I] < (uptr)ARENA_SIZE)
The problem remaining is that narenas can get out of synch with arenas, and
if narenas refers to a later arena size, arenas[I] may be an out-of-bounds
reference. This may be a good reason to make "narenas" and "arenas"
volatile, in order to ensure that the former is read up before the latter.