Commit 09a5678
committed
gh-153568: Pause the GC while converting the AST to Python objects
Freshly converted AST nodes cannot be part of a reference cycle yet, so
collections during the conversion only pay to traverse the half-built
tree without ever freeing any of it.1 parent e2118b0 commit 09a5678
3 files changed
Lines changed: 18 additions & 0 deletions
File tree
- Misc/NEWS.d/next/Core_and_Builtins
- Parser
- Python
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2117 | 2117 | | |
2118 | 2118 | | |
2119 | 2119 | | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
2120 | 2125 | | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
2121 | 2129 | | |
2122 | 2130 | | |
2123 | 2131 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments