Changeset 531 for Tests


Ignore:
Timestamp:
04/03/12 16:11:43 (10 years ago)
Author:
BegemoT
Message:
 
File:
1 copied

Legend:

Unmodified
Added
Removed
  • Tests/JAVA/test/src/main/java/test/threads/queue/unstressed/impl/CABSESDLazySetPaddedSpinOptimizedCleanFreeTASUnrolledQueue.java

    r519 r531  
    1515 * @since 27.09.11,  14:58 
    1616 */ 
    17 public class CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue<T> implements IQueue<T> { 
     17public class CABSESDLazySetPaddedSpinOptimizedCleanFreeTASUnrolledQueue<T> implements IQueue<T> { 
    1818    private static final boolean USE_BITMASK = true; 
    1919    //====================================================== 
    20     private static final AtomicLongFieldUpdater<CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue> tailUpdater = AtomicLongFieldUpdater.newUpdater( CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue.class, "tailCursor" ); 
    21     private static final AtomicLongFieldUpdater<CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue> headUpdater = AtomicLongFieldUpdater.newUpdater( CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue.class, "headCursor" ); 
     20    private static final AtomicLongFieldUpdater<CABSESDLazySetPaddedSpinOptimizedCleanFreeTASUnrolledQueue> tailUpdater = AtomicLongFieldUpdater.newUpdater( CABSESDLazySetPaddedSpinOptimizedCleanFreeTASUnrolledQueue.class, "tailCursor" ); 
     21    private static final AtomicLongFieldUpdater<CABSESDLazySetPaddedSpinOptimizedCleanFreeTASUnrolledQueue> headUpdater = AtomicLongFieldUpdater.newUpdater( CABSESDLazySetPaddedSpinOptimizedCleanFreeTASUnrolledQueue.class, "headCursor" ); 
    2222    //====================================================== 
    2323 
     
    6767 
    6868 
    69     public CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue( final int length ) { 
     69    public CABSESDLazySetPaddedSpinOptimizedCleanFreeTASUnrolledQueue( final int length ) { 
    7070        checkArgument( length > 0, "length(%s) must be >0", length ); 
    7171        if ( USE_BITMASK ) { 
     
    123123 
    124124        final int index = index( newTail ); 
    125         elements[index] = item; 
     125        if ( elements[index] != item ) { 
     126            elements[index] = item; 
     127        } 
    126128 
    127129        publishTail( newTail ); 
     
    152154 
    153155    @SuppressWarnings( "unchecked" ) 
    154     public static <T> IBoundedQueueFactory<T, CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue<T>> factory() { 
     156    public static <T> IBoundedQueueFactory<T, CABSESDLazySetPaddedSpinOptimizedCleanFreeTASUnrolledQueue<T>> factory() { 
    155157        return FACTORY; 
    156158    } 
    157159 
    158     public static final IBoundedQueueFactory FACTORY = new IBoundedQueueFactory<Object, CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue<Object>>() { 
     160    public static final IBoundedQueueFactory FACTORY = new IBoundedQueueFactory<Object, CABSESDLazySetPaddedSpinOptimizedCleanFreeTASUnrolledQueue<Object>>() { 
    159161        @Override 
    160         public CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue<Object> create( final int size ) { 
    161             return new CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue<Object>( size ); 
     162        public CABSESDLazySetPaddedSpinOptimizedCleanFreeTASUnrolledQueue<Object> create( final int size ) { 
     163            return new CABSESDLazySetPaddedSpinOptimizedCleanFreeTASUnrolledQueue<Object>( size ); 
    162164        } 
    163165 
Note: See TracChangeset for help on using the changeset viewer.