Skip to content

Commit 39aa50f

Browse files
misc: add news entry
1 parent e397b51 commit 39aa50f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Fix a crash in :func:`contextvars.Context.run` where a re-entrant GC
2+
invocation (triggered by ``_PyHamt_Assoc`` or ``_PyHamt_Without``
3+
allocating nodes) could free the current HAMT while it was still being
4+
traversed. The fix holds a strong reference to the old ``ctx_vars``
5+
across the hazardous call in ``contextvar_set`` and ``contextvar_del``.
6+

0 commit comments

Comments
 (0)