[New-bugs-announce] [issue26774] Elide Py_atomic fences when WITH_THREAD is disabled?
report at bugs.python.org
Fri Apr 15 23:29:24 EDT 2016
New submission from Larry Hastings:
Right now the atomic access fence macros in pyatomic.h are unconditional. This means that they're active even even when you "./configure --without-threads". If Python thread support is disabled, surely we don't need to ensure atomic access to variables, because there aren't any other threads to compete with.
Shouldn't we add
/* current code goes here */
#define _Py_atomic_load_relaxed(x) (x)
/* etc */
nosy: haypo, jyasskin, larry
stage: test needed
title: Elide Py_atomic fences when WITH_THREAD is disabled?
versions: Python 3.6
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce