<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/pyatomic.h, branch 3.6</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/pyatomic.h?h=3.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/pyatomic.h?h=3.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2016-09-06T20:47:26Z</updated>
<entry>
<title>replace Py_(u)intptr_t with the c99 standard types</title>
<updated>2016-09-06T20:47:26Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2016-09-06T20:47:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ca4706399879b30e952c402637b4fc0d4d2e661c'/>
<id>urn:sha1:ca4706399879b30e952c402637b4fc0d4d2e661c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use Py_uintptr_t for atomic pointers</title>
<updated>2016-01-22T13:09:55Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2016-01-22T13:09:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b02ef715a303ab09a39ef994d8f5acc4eb572376'/>
<id>urn:sha1:b02ef715a303ab09a39ef994d8f5acc4eb572376</id>
<content type='text'>
Issue #26161: Use Py_uintptr_t instead of void* for atomic pointers in
pyatomic.h. Use atomic_uintptr_t when &lt;stdatomic.h&gt; is used.

Using void* causes compilation warnings depending on which implementation of
atomic types is used.
</content>
</entry>
<entry>
<title>Issue #25150: Hide the private _Py_atomic_xxx symbols from the public</title>
<updated>2015-09-18T13:06:34Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-09-18T13:06:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6df29ada02d22c43a8d439a70b820cb1ceacca42'/>
<id>urn:sha1:6df29ada02d22c43a8d439a70b820cb1ceacca42</id>
<content type='text'>
Python.h header to fix a compilation error with OpenMP. PyThreadState_GET()
becomes an alias to PyThreadState_Get() to avoid ABI incompatibilies.

It is important that the _PyThreadState_Current variable is always accessed
with the same implementation of pyatomic.h. Use the PyThreadState_Get()
function so extension modules will all reuse the same implementation.
</content>
</entry>
<entry>
<title>Issue #23644: Fix issues with C++ when compiling Python extensions</title>
<updated>2015-03-17T21:53:27Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-03-17T21:53:27Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6562b29e13f4da98558636c43a1b242698c8f8d9'/>
<id>urn:sha1:6562b29e13f4da98558636c43a1b242698c8f8d9</id>
<content type='text'>
Disable completly pyatomic.h on C++, because &lt;stdatomic.h&gt; is not compatible with C++.

&lt;pyatomic.h&gt; is only needed by the optimized PyThreadState_GET() macro in
pystate.h. Instead, declare PyThreadState_GET() as an alias to
PyThreadState_Get(), as done for limited API.
</content>
</entry>
<entry>
<title>Issue #23644, #22038: Move #include &lt;stdatomic.c&gt; inside the extern "C" { ... }</title>
<updated>2015-03-12T15:04:41Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-03-12T15:04:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3b6d0ae8fe50123d23f07190e8f792a1dd19cc61'/>
<id>urn:sha1:3b6d0ae8fe50123d23f07190e8f792a1dd19cc61</id>
<content type='text'>
block in pyatomic.h
</content>
</entry>
<entry>
<title>Issue #22038: pyatomic.h now uses stdatomic.h or GCC built-in functions for</title>
<updated>2015-01-09T01:13:19Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2015-01-09T01:13:19Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4f5366e65a4d773fb5dda3329bd7b7c5425718fb'/>
<id>urn:sha1:4f5366e65a4d773fb5dda3329bd7b7c5425718fb</id>
<content type='text'>
atomic memory access if available. Patch written by Vitor de Lima and Gustavo
Temple.
</content>
</entry>
<entry>
<title>- Issue #11147: Fix an unused argument in _Py_ANNOTATE_MEMORY_ORDER.  (Fix</title>
<updated>2011-12-05T21:45:02Z</updated>
<author>
<name>Barry Warsaw</name>
<email>barry@python.org</email>
</author>
<published>2011-12-05T21:45:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9f5713546503628d4af0895eb76f1368160853be'/>
<id>urn:sha1:9f5713546503628d4af0895eb76f1368160853be</id>
<content type='text'>
  given by Campbell Barton).
</content>
</entry>
<entry>
<title>Issue #13338: Handle all enumerations in _Py_ANNOTATE_MEMORY_ORDER</title>
<updated>2011-11-19T20:03:10Z</updated>
<author>
<name>Petri Lehtinen</name>
<email>petri@digip.org</email>
</author>
<published>2011-11-19T20:03:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=8d40f16a6021dc7fbba1bdc1bbda27ea1e955777'/>
<id>urn:sha1:8d40f16a6021dc7fbba1bdc1bbda27ea1e955777</id>
<content type='text'>
This allows compiling extension modules with -Wswitch-enum on gcc.
Initial patch by Floris Bruynooghe.
</content>
</entry>
<entry>
<title>Merge branches/pep-0384.</title>
<updated>2010-12-03T20:14:31Z</updated>
<author>
<name>Martin v. Löwis</name>
<email>martin@v.loewis.de</email>
</author>
<published>2010-12-03T20:14:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4d0d471a8031de90a2b1ce99c4ac4780e60b3bc9'/>
<id>urn:sha1:4d0d471a8031de90a2b1ce99c4ac4780e60b3bc9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make (most of) Python's tests pass under Thread Sanitizer.</title>
<updated>2010-05-03T19:29:34Z</updated>
<author>
<name>Jeffrey Yasskin</name>
<email>jyasskin@gmail.com</email>
</author>
<published>2010-05-03T19:29:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=39370830a96068ecbad006fe38fdb13107d8cd6b'/>
<id>urn:sha1:39370830a96068ecbad006fe38fdb13107d8cd6b</id>
<content type='text'>
http://code.google.com/p/data-race-test/wiki/ThreadSanitizer is a dynamic data
race detector that runs on top of valgrind. With this patch, the binaries at
http://code.google.com/p/data-race-test/wiki/ThreadSanitizer#Binaries pass many
but not all of the Python tests. All of regrtest still passes outside of tsan.

I've implemented part of the C1x atomic types so that we can explicitly mark
variables that are used across threads, and get defined behavior as compilers
advance.

I've added tsan's client header and implementation to the codebase in
dynamic_annotations.{h,c} (docs at
http://code.google.com/p/data-race-test/wiki/DynamicAnnotations).
Unfortunately, I haven't been able to get helgrind and drd to give sensible
error messages, even when I use their client annotations, so I'm not supporting
them.
</content>
</entry>
</feed>
