Skip to content

Commit 9b0dc99

Browse files
Immortalize the interned strings dict.
1 parent b649a84 commit 9b0dc99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/unicodeobject.c

+1
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ static inline PyObject *get_interned_dict(void)
239239
static inline void set_interned_dict(PyObject *dict)
240240
{
241241
_Py_CACHED_OBJECT(interned_strings) = dict;
242+
_Py_SetImmortal(dict);
242243
}
243244

244245
#define _Py_RETURN_UNICODE_EMPTY() \

0 commit comments

Comments
 (0)