summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-12-08 22:38:06 (GMT)
committerGitHub <noreply@github.com>2022-12-08 22:38:06 (GMT)
commitcda9f0236fd7800c6db5eec207668c4bfec4a45d (patch)
tree8271573ec183d16da788eaba0e83a8ec65572d76 /Tools
parentc85be734d1823f02a3600d7cd9195cecbf51afe8 (diff)
downloadcpython-cda9f0236fd7800c6db5eec207668c4bfec4a45d.zip
cpython-cda9f0236fd7800c6db5eec207668c4bfec4a45d.tar.gz
cpython-cda9f0236fd7800c6db5eec207668c4bfec4a45d.tar.bz2
gh-81057: Move OS-Related Globals to _PyRuntimeState (gh-100082)
https://github.com/python/cpython/issues/81057
Diffstat (limited to 'Tools')
-rw-r--r--Tools/c-analyzer/cpython/globals-to-fix.tsv3
-rw-r--r--Tools/c-analyzer/cpython/ignored.tsv8
2 files changed, 6 insertions, 5 deletions
diff --git a/Tools/c-analyzer/cpython/globals-to-fix.tsv b/Tools/c-analyzer/cpython/globals-to-fix.tsv
index 5c81645..8e05bc3 100644
--- a/Tools/c-analyzer/cpython/globals-to-fix.tsv
+++ b/Tools/c-analyzer/cpython/globals-to-fix.tsv
@@ -390,9 +390,6 @@ Modules/faulthandler.c - old_stack -
##-----------------------
## initialized once
-Modules/posixmodule.c os_dup2_impl dup3_works -
-Modules/posixmodule.c - structseq_new -
-Modules/posixmodule.c - ticks_per_second -
Modules/timemodule.c _PyTime_GetClockWithInfo initialized -
Modules/timemodule.c _PyTime_GetProcessTimeWithInfo ticks_per_second -
diff --git a/Tools/c-analyzer/cpython/ignored.tsv b/Tools/c-analyzer/cpython/ignored.tsv
index 2578235..814c55b 100644
--- a/Tools/c-analyzer/cpython/ignored.tsv
+++ b/Tools/c-analyzer/cpython/ignored.tsv
@@ -11,14 +11,18 @@ filename funcname name reason
# These are effectively const.
##-----------------------
-## process-global resources - set during first init
+## process-global resources
## indicators for resource availability/capability
+# (set during first init)
Python/bootstrap_hash.c py_getrandom getrandom_works -
Python/fileutils.c - _Py_open_cloexec_works -
Python/fileutils.c set_inheritable ioctl_works -
+# (set lazily, *after* first init)
+# XXX Is this thread-safe?
+Modules/posixmodule.c os_dup2_impl dup3_works -
-## resource init
+## resource init - set during first init
Python/thread.c - initialized -
Python/thread_pthread.h - condattr_monotonic -
# safe static buffer used during one-time initialization