gh-122291: Intern latin-1 one-byte strings at startup by encukou · Pull Request #122303 · python/cpython · GitHub

github.com

Tin mới

encukou:intern-ūnus

miss-islington-app

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

intern_static is not thread-safe with multiple interpreters #122291

Intern latin-1 one-byte strings at startup

awaiting core review

awaiting core review

View reviewed changes

Learn more about hiding disruptive comments

The reason will be displayed to describe this comment to others. Learn more.

needs backport to 3.13

needs backport to 3.13

: Intern latin-1 one-byte strings at startup (

bedevere-app Bot commented Jul 27, 2024

bedevere-app Bot commented Jul 27, 2024

GH-122347 is a backport of this pull request to the 3.13 branch.

[3.13] gh-122291: Intern latin-1 one-byte strings at startup (GH-122303) (GH-122347) (cherry picked from commit bb09ba679223666e01f8da780f97888a29d07131) Co-authored-by: Petr Viktorin <[email protected]>

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

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

[3.12] gh-113993: Make interned strings mortal (GH-120520, GH-121364, GH-121903, GH-122303) #123065

Stable ABI: Objects/bytesobject.c:122: PyBytes_FromStringAndSize: Assertion '_Py_IsImmortal(op)' failed. #123091

: Make interned strings mortal (