Mark Shannon <ma...@dcs.gla.ac.uk> added the comment:

Please reopen this bug as the fix is wrong.

This fix merely hides the symptoms of _PyType_Lookup returning a dead object, 
by calling PyType_Modified() frequently, thus ensuring the type method cache is 
almost always invalidated.
This results in a significant slow down in pystones (~4%) due to a large 
slowdown (~60%) in _PyType_Lookup.

I don't know what the root cause is, but it could be:
A failure to call PyType_Modified() at the correct point (probably somewhere in 
iobase.c)
or it could be:
Deallocation not conforming to topographical ordering (ie. instance first then 
class), due to a cycle involving a borrowed reference.
(Or it could be something else)

----------
nosy: +Mark.Shannon

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12149>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to