-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
break potential reference cycles in external code worsened by typing.…
…py lru_cache (#98253)
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
Misc/NEWS.d/next/Library/2022-10-24-11-01-05.gh-issue-98253.HVd5v4.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
The implementation of the typing module is now more resilient to reference | ||
leaks in binary extension modules. | ||
|
||
Previously, a reference leak in a typed C API-based extension module could leak | ||
internals of the typing module, which could in turn introduce leaks in | ||
essentially any other package with typed function signatures. Although the | ||
typing package is not the original source of the problem, such non-local | ||
dependences exacerbate debugging of large-scale projects, and the | ||
implementation was therefore changed to reduce harm by providing better | ||
isolation. |