Mercurial > cpython-lru_cache-weakref
diff Include/unicodeobject.h @ 45341:65ae68c7aca3 legacy-trunk
Implemented Martin's suggestion to clear the free lists during the garbage collection of the highest generation.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Thu, 14 Feb 2008 12:47:33 +0000 |
| parents | 26278796d4da |
| children | 47ef9a806ce9 |
line wrap: on
line diff
--- a/Include/unicodeobject.h Thu Feb 14 12:05:42 2008 +0000 +++ b/Include/unicodeobject.h Thu Feb 14 12:47:33 2008 +0000 @@ -209,6 +209,7 @@ # define _PyUnicode_AsDefaultEncodedString _PyUnicodeUCS2_AsDefaultEncodedString # define _PyUnicode_Fini _PyUnicodeUCS2_Fini # define _PyUnicode_Init _PyUnicodeUCS2_Init +# define PyUnicode_ClearFreeList PyUnicodeUCS2_ClearFreelist # define _PyUnicode_IsAlpha _PyUnicodeUCS2_IsAlpha # define _PyUnicode_IsDecimalDigit _PyUnicodeUCS2_IsDecimalDigit # define _PyUnicode_IsDigit _PyUnicodeUCS2_IsDigit @@ -295,6 +296,7 @@ # define _PyUnicode_AsDefaultEncodedString _PyUnicodeUCS4_AsDefaultEncodedString # define _PyUnicode_Fini _PyUnicodeUCS4_Fini # define _PyUnicode_Init _PyUnicodeUCS4_Init +# define PyUnicode_ClearFreeList PyUnicodeUCS2_ClearFreelist # define _PyUnicode_IsAlpha _PyUnicodeUCS4_IsAlpha # define _PyUnicode_IsDecimalDigit _PyUnicodeUCS4_IsDecimalDigit # define _PyUnicode_IsDigit _PyUnicodeUCS4_IsDigit @@ -403,6 +405,8 @@ extern "C" { #endif +PyAPI_FUNC(int) PyUnicode_ClearFreeList(void); + /* --- Unicode Type ------------------------------------------------------- */ typedef struct {
