Commit fecc4f2
authored
When Python is compiled with Valgrind support, release Unicode
interned strings at exit in _PyUnicode_Fini().
* Rename _Py_ReleaseInternedUnicodeStrings() to
unicode_release_interned() and make it private.
* unicode_release_interned() is now called from _PyUnicode_Fini():
it must be called with a running Python thread state for TRASHCAN,
it cannot be called from pymain_free().
* Don't display statistics on interned strings at exit anymore
1 parent a712679 commit fecc4f2Copy full SHA for fecc4f2
3 files changed
+42-29Lines changed: 42 additions & 29 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- Include/cpython
- Modules
- Objects
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Include/cpython/unicodeobject.h
Copy file name to clipboardExpand all lines: Include/cpython/unicodeobject.h-2Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
722 | 722 | |
723 | 723 | |
724 | 724 | |
725 | | - |
726 | | - |
727 | 725 | |
728 | 726 | |
729 | 727 | |
|
Collapse file
-12Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
839 | 839 | |
840 | 840 | |
841 | 841 | |
842 | | - |
843 | | - |
844 | | - |
845 | | - |
846 | | - |
847 | | - |
848 | | - |
849 | | - |
850 | | - |
851 | | - |
852 | | - |
853 | | - |
854 | 842 | |
855 | 843 | |
856 | 844 | |
|
Collapse file
+42-15Lines changed: 42 additions & 15 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
51 | 51 | |
52 | 52 | |
53 | 53 | |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
54 | 59 | |
55 | 60 | |
56 | 61 | |
| ||
15157 | 15162 | |
15158 | 15163 | |
15159 | 15164 | |
15160 | | - |
15161 | | - |
15162 | | - |
15163 | | - |
15164 | | - |
15165 | | - |
15166 | | - |
15167 | | - |
15168 | | - |
15169 | | - |
15170 | | - |
15171 | | - |
15172 | 15165 | |
15173 | 15166 | |
15174 | 15167 | |
| ||
15233 | 15226 | |
15234 | 15227 | |
15235 | 15228 | |
15236 | | - |
15237 | | - |
| 15229 | + |
| 15230 | + |
| 15231 | + |
| 15232 | + |
15238 | 15233 | |
15239 | 15234 | |
15240 | 15235 | |
| ||
15249 | 15244 | |
15250 | 15245 | |
15251 | 15246 | |
15252 | | - |
| 15247 | + |
15253 | 15248 | |
15254 | 15249 | |
15255 | 15250 | |
15256 | 15251 | |
15257 | 15252 | |
| 15253 | + |
15258 | 15254 | |
15259 | 15255 | |
| 15256 | + |
15260 | 15257 | |
15261 | 15258 | |
15262 | 15259 | |
| ||
15279 | 15276 | |
15280 | 15277 | |
15281 | 15278 | |
| 15279 | + |
15282 | 15280 | |
15283 | 15281 | |
15284 | 15282 | |
| 15283 | + |
15285 | 15284 | |
15286 | 15285 | |
15287 | 15286 | |
15288 | 15287 | |
| 15288 | + |
15289 | 15289 | |
15290 | 15290 | |
15291 | 15291 | |
| ||
15564 | 15564 | |
15565 | 15565 | |
15566 | 15566 | |
| 15567 | + |
| 15568 | + |
| 15569 | + |
| 15570 | + |
| 15571 | + |
| 15572 | + |
| 15573 | + |
| 15574 | + |
| 15575 | + |
| 15576 | + |
| 15577 | + |
| 15578 | + |
| 15579 | + |
| 15580 | + |
| 15581 | + |
| 15582 | + |
| 15583 | + |
| 15584 | + |
| 15585 | + |
| 15586 | + |
| 15587 | + |
| 15588 | + |
| 15589 | + |
| 15590 | + |
| 15591 | + |
| 15592 | + |
| 15593 | + |
15567 | 15594 | |
15568 | 15595 | |
15569 | 15596 | |
|
0 commit comments