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 fecc4f2
File tree
3 files changed
+42
-29
lines changed- Include/cpython
- Modules
- Objects
3 files changed
+42
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
726 | | - | |
727 | 725 | | |
728 | 726 | | |
729 | 727 | | |
| |||
| 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 | | |
| |||
| 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