summaryrefslogtreecommitdiff
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-12-14 11:53:57 -0700
committerGitHub <noreply@github.com>2022-12-14 11:53:57 -0700
commitaa8591e9ca9a3e55e96a03c17fa9d3902f0674dc (patch)
tree78cce30e75e22a74f975252ce03cb945fb584a03 /Objects/unicodeobject.c
parent96638538002fc6e209755c06f613b0a59eb91166 (diff)
downloadcpython-git-aa8591e9ca9a3e55e96a03c17fa9d3902f0674dc.tar.gz
gh-90111: Minor Cleanup for Runtime-Global Objects (gh-100254)
* move _PyRuntime.global_objects.interned to _PyRuntime.cached_objects.interned_strings (and use _Py_CACHED_OBJECT()) * rename _PyRuntime.global_objects to _PyRuntime.static_objects (This also relates to gh-96075.) https://github.com/python/cpython/issues/90111
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index b721ccd805..f0c7aa7707 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -233,12 +233,12 @@ static inline PyObject* unicode_new_empty(void)
*/
static inline PyObject *get_interned_dict(void)
{
- return _PyRuntime.global_objects.interned;
+ return _Py_CACHED_OBJECT(interned_strings);
}
static inline void set_interned_dict(PyObject *dict)
{
- _PyRuntime.global_objects.interned = dict;
+ _Py_CACHED_OBJECT(interned_strings) = dict;
}
#define _Py_RETURN_UNICODE_EMPTY() \