SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

gh-78214: marshal: Stabilize FLAG_REF usage (GH-8226)

Use FLAG_REF always for interned strings.

Refcounts of interned string is very unstable.
When compiling same source, refcounts of interned string in the output may be 1 or >1.
It makes FLAG_REF usage unstable.

To help reproducible build, use FLAG_REF for interned string even if refcnt(obj)==1.
I
Inada Naoki committed
6dcfd6c5e3cb46543e82dc3f7234546adf4bb04a
Parent: dfb1b9d
Committed by GitHub <noreply@github.com> on 5/4/2022, 1:01:15 AM