Message257130
An OrderedDict owns two references to every key (as a dict and from a linked list). Therefore it should visit it twice in tp_traverse.
Proposed patch fixes garbage collection for OrderedDict. It also rewrites OrderedDict clearing in more reentrant form (a linked list is detached from an OrderedDict before deallocating its nodes that can trigger executing user code). |
|
Date |
User |
Action |
Args |
2015-12-28 21:49:15 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, eric.snow, charettes, Tim.Graham |
2015-12-28 21:49:14 | serhiy.storchaka | set | messageid: <1451339354.93.0.59059252469.issue25935@psf.upfronthosting.co.za> |
2015-12-28 21:49:14 | serhiy.storchaka | link | issue25935 messages |
2015-12-28 21:49:14 | serhiy.storchaka | create | |
|