mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Add interning of unicode strings by copying the functionality from
stringobject.c. Intern "True" and "False" in bool_repr() again as it was in the 8bit string era.
This commit is contained in:
parent
34a042d301
commit
1680713e52
5 changed files with 158 additions and 7 deletions
|
@ -521,7 +521,7 @@ Py_Main(int argc, char **argv)
|
|||
#ifdef __INSURE__
|
||||
/* Insure++ is a memory analysis tool that aids in discovering
|
||||
* memory leaks and other memory problems. On Python exit, the
|
||||
* interned string dictionary is flagged as being in use at exit
|
||||
* interned string dictionaries are flagged as being in use at exit
|
||||
* (which it is). Under normal circumstances, this is fine because
|
||||
* the memory will be automatically reclaimed by the system. Under
|
||||
* memory debugging, it's a huge source of useless noise, so we
|
||||
|
@ -529,6 +529,7 @@ Py_Main(int argc, char **argv)
|
|||
* reports. -baw
|
||||
*/
|
||||
_Py_ReleaseInternedStrings();
|
||||
_Py_ReleaseInternedUnicodeStrings();
|
||||
#endif /* __INSURE__ */
|
||||
|
||||
return sts;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue