8000 gh-100227: Make the Global Interned Dict Safe for Isolated Interpreters by ericsnowcurrently · Pull Request #102858 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-100227: Make the Global Interned Dict Safe for Isolated Interpreters #102858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prev Previous commit
Next Next commit
Temporarily skip immortalizing.
  • Loading branch information
ericsnowcurrently committed Mar 20, 2023
commit d36f11922b05d582ccc13b77defc49e3ba4e8ff5
3 changes: 2 additions & 1 deletion Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -14673,7 +14673,8 @@ PyUnicode_InternInPlace(PyObject **p)
}

/* Immortalize the object. */
_Py_SetImmortal(s);
// XXX Uncomment this once the PEP 683 implementation has landed.
//_Py_SetImmortal(s);

/* The two references in interned dict (key and value) are not counted by
refcnt. unicode_dealloc() and _PyUnicode_ClearInterned() take care of
Expand Down
0