Ticket #6308: sp_counted_base_aix_memory_barrier.patch
File sp_counted_base_aix_memory_barrier.patch, 622 bytes (added by , 11 years ago) |
---|
-
sp_counted_base_aix.hpp
82 82 { 83 83 if( fetch_and_add( &use_count_, -1 ) == 1 ) 84 84 { 85 // memory barrier 86 __asm__ __volatile__("isync"); 85 87 dispose(); 86 88 weak_release(); 87 89 } … … 96 98 { 97 99 if( fetch_and_add( &weak_count_, -1 ) == 1 ) 98 100 { 101 // memory barrier 102 __asm__ __volatile__("isync"); 99 103 destroy(); 100 104 } 101 105 }