diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2017-09-05 18:26:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-05 18:26:16 -0700 |
commit | 76d5abc8684bac4f2fc7cccfe2cd940923357351 (patch) | |
tree | 4ae6a3bd88bef1266a8d9723c589f925d90bf848 /Objects/setobject.c | |
parent | 501b324d3a940d26e0021a38aae8d896a30fbcff (diff) | |
download | cpython-git-76d5abc8684bac4f2fc7cccfe2cd940923357351.tar.gz |
bpo-30860: Consolidate stateful runtime globals. (#2594)
* group the (stateful) runtime globals into various topical structs
* consolidate the topical structs under a single top-level _PyRuntimeState struct
* add a check-c-globals.py script that helps identify runtime globals
Other globals are excluded (see globals.txt and check-c-globals.py).
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r-- | Objects/setobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c index 219e81d0ba..6001f7b6f4 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c @@ -1115,6 +1115,7 @@ frozenset_new(PyTypeObject *type, PyObject *args, PyObject *kwds) } /* The empty frozenset is a singleton */ if (emptyfrozenset == NULL) + /* There is a possible (relatively harmless) race here. */ emptyfrozenset = make_new_set(type, NULL); Py_XINCREF(emptyfrozenset); return emptyfrozenset; |