Message27843
Logged In: YES
user_id=4771
The cause of the bug is that if oldtable == mp->ma_smalltable
then pure Python code can mangle with mp->ma_smalltable while
it is being walked on. A simple fix would be to always make
a copy of the oldtable if it is mp->ma_smalltable (not only
if oldtable == newtable).
Attached a more efficient fix, which should also make dict
resizing somehow faster. It requires yet another version
of the lookup algorithm, though. It's a very simple version
that assumes that all items are different and the dict
contains no dummy entries. |
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:38:38 | admin | link | issue1456209 messages |
| 2007-08-23 14:38:38 | admin | create | |
|