]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-78214: marshal: Stabilize FLAG_REF usage (GH-8226)
authorInada Naoki <songofacandy@gmail.com>
Wed, 4 May 2022 01:01:15 +0000 (10:01 +0900)
committerGitHub <noreply@github.com>
Wed, 4 May 2022 01:01:15 +0000 (10:01 +0900)
commit6dcfd6c5e3cb46543e82dc3f7234546adf4bb04a
tree6cf49503df92190b3ee66eca5b5af7a6f22c61f5
parentdfb1b9da8a4becaeaed3d9cffcaac41bcaf746f4
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.
Misc/NEWS.d/next/Core and Builtins/2018-07-14-16-58-00.bpo-34093.WaVD-f.rst [new file with mode: 0644]
Programs/test_frozenmain.h
Python/marshal.c