Re: [Cython] PR on refcounting memoryview buffers

2013-03-04 Thread Sturla Molden
Den 20. feb. 2013 kl. 11:55 skrev Sturla Molden : > > Den 18. feb. 2013 kl. 19:32 skrev Sturla Molden : > >> The problem this addresses is when GCC does not use atomic builtins and >> emits __synch_fetch_and_add_4 and __synch_fetch_and_sub_4 when Cython are >> internally refcounting memoryview

Re: [Cython] PR on refcounting memoryview buffers

2013-02-20 Thread Sturla Molden
Den 18. feb. 2013 kl. 19:32 skrev Sturla Molden : > The problem this addresses is when GCC does not use atomic builtins and emits > __synch_fetch_and_add_4 and __synch_fetch_and_sub_4 when Cython are > internally refcounting memoryview buffers. For some reason it can even happen > on x86 and a

[Cython] PR on refcounting memoryview buffers

2013-02-18 Thread Sturla Molden
As Stefan suggested, I have posted a PR for a better fix for the issue when MinGW for some reason emits the symbol "__synch_fetch_and_add_4" instead of generating atomic opcode for the __synch_fetch_and_add builtin. The PR is here: https://github.com/cython/cython/pull/185 The discussion proba