diff options
author | Sam Gross <colesbury@gmail.com> | 2023-10-30 16:06:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 16:06:09 (GMT) |
commit | 6dfb8fe0236718e9afc8136ff2b58dcfbc182022 (patch) | |
tree | 1b5ad337bc68ebc2ff1325c0b695807c48640d30 /Objects/unicodeobject.c | |
parent | 05f2f0ac92afa560315eb66fd6576683c7f69e2d (diff) | |
download | cpython-6dfb8fe0236718e9afc8136ff2b58dcfbc182022.zip cpython-6dfb8fe0236718e9afc8136ff2b58dcfbc182022.tar.gz cpython-6dfb8fe0236718e9afc8136ff2b58dcfbc182022.tar.bz2 |
gh-110481: Implement biased reference counting (gh-110764)
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 80b1956..87636ef 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -14967,7 +14967,7 @@ _PyUnicode_ClearInterned(PyInterpreterState *interp) // Skip the Immortal Instance check and restore // the two references (key and value) ignored // by PyUnicode_InternInPlace(). - s->ob_refcnt = 2; + _Py_SetMortal(s, 2); #ifdef INTERNED_STATS total_length += PyUnicode_GET_LENGTH(s); #endif |