[3.12] gh-113993: Make interned strings mortal (GH-120520, GH-121364, GH-121903, GH-122303) by encukou · Pull Request #123065 · python/cpython · GitHub

github.com

Tin mới

encukou:mortal-interns-3.12

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

gh-113993: Allow interned strings to be mortal, and fix related issues #120520

Allow interned strings to be mortal, and fix related issues (gh-113993: Allow interned strings to be mortal, and fix related issues #120520)

gh-113993: Don't immortalize in PyUnicode_InternInPlace; keep immortalizing in other API #121364

Don't immortalize in PyUnicode_InternInPlace; keep immortalizing in other API (gh-113993: Don't immortalize in PyUnicode_InternInPlace; keep immortalizing in other API #121364)

gh-121863: Immortalize names in code objects to avoid crash #121903

Immortalize names in code objects to avoid crash (gh-121863: Immortalize names in code objects to avoid crash #121903)

gh-122291: Intern latin-1 one-byte strings at startup #122303

Intern latin-1 one-byte strings at startup (gh-122291: Intern latin-1 one-byte strings at startup #122303)

: Allow interned strings to be mortal, and fix …

Put _Py_SetImmortal assertion in the old place

Create per-interpreter intern dict after init of deep-frozen modules

: Don't immortalize in PyUnicode_InternInPlace;…

[3.12] gh-121863: Immortalize names in code objects to avoid crash (GH-121903)

[3.12] gh-122291: Intern latin-1 one-byte strings at startup (GH-122303)

Adjust internal docs for 3.12

Interned strings are immortal, despite what the documentation says #113993

awaiting core review

awaiting core review

Path.exists() - Memory leak #122849

Regenerate the ABI dump (static strings are reorganized)

Don't link to the missing glossary term immortal.

Merge branch '3.12' into mortal-interns-3.12

Regenerate test_frozenmain.h

🔨 test-with-buildbots

🔨 test-with-buildbots

Dict memory leak in Python 3.12.x / msgpack 1.0.x msgpack/msgpack-python#612

View reviewed changes

generate_global_objects.py: Fix name of macro in error message (

Merge in the main branch

Merge branch '3.12' into mortal-interns-3.12

Fix typo in InternalDocs/string_interning.md #124699