[Gc] [PATCH 2/2]: Hexagon atomic ops

Linas Vepstas linasvepstas at gmail.com
Wed Nov 16 09:34:43 PST 2011


Hi,

On 16 November 2011 10:33, Ivan Maidanski <ivmai at mail.ru> wrote:
> Hi Linas,
>
> Based on your implementation of CAS for Hexagon, I've created another CAS primitive equivalent to GCC __sync_val_compare_and_swap one (see AO_fetch_compare_and_swap() in https://github.com/ivmai/libatomic_ops/blob/ao_val_cas/src/atomic_ops/sysdeps/gcc/hexagon.h).
> But I have no opportunity to test the code.
>
> Could you please test that code ("ao_val_cas" branch) for Hexagon?
>
> git clone git://github.com/ivmai/libatomic_ops.git -b ao_val_cas
> cd libatomic_ops; autoreconf -vif
> ./configure; make check

Looks good to me; the last few lines are:

PASS: test_stack
Performing 1000 reversals of 1000 element lists in 10 threads
Testing AO_malloc/AO_free
Succeeded
PASS: test_malloc
==================
All 4 tests passed
==================

--linas



More information about the Gc mailing list