Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

Ross Ridge rridge at csclub.uwaterloo.ca
Tue Nov 7 10:38:02 EST 2006


Joe Seigh wrote:
> Basically there's a race condition where an object containing the
> refcount can be deleted between the time you load a pointer to
> the object and the time you increment what used to be a refcount
> and is possibly something else but definitely undefined.

That doesn't really make sense.  The object can't be deleted because
the thread should already have a reference (directly or indirectly) to
the object, otherwise any access to it can cause the race condition you
describe.

                                  Ross Ridge




More information about the Python-list mailing list