Commit a7f206c
committed
Fix race condition in cached_method
Multiple weakrefs can be created when there are concurrent writes to a
"new cache". When they finalize, their attempts to clear the dict should
be kept safe by using a pop() default.1 parent 8086aa5 commit a7f206c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1134 | 1134 | | |
1135 | 1135 | | |
1136 | 1136 | | |
1137 | | - | |
| 1137 | + | |
1138 | 1138 | | |
1139 | 1139 | | |
1140 | 1140 | | |
| |||
0 commit comments