Ticket #6308: sp_counted_base_aix_memory_barrier.patch

File sp_counted_base_aix_memory_barrier.patch, 622 bytes (added by aaron.riekenberg@…, 11 years ago)

Patch to add memory barrier to sp_counted_base_aix.hpp

  • sp_counted_base_aix.hpp

     
    8282    {
    8383        if( fetch_and_add( &use_count_, -1 ) == 1 )
    8484        {
     85            // memory barrier
     86            __asm__ __volatile__("isync");
    8587            dispose();
    8688            weak_release();
    8789        }
     
    9698    {
    9799        if( fetch_and_add( &weak_count_, -1 ) == 1 )
    98100        {
     101            // memory barrier
     102            __asm__ __volatile__("isync");
    99103            destroy();
    100104        }
    101105    }