Changeset 518 for Tests


Ignore:
Timestamp:
03/29/12 23:21:52 (10 years ago)
Author:
BegemoT
Message:
 
File:
1 copied

Legend:

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

    r517 r518  
    1515 * @since 27.09.11,  14:58 
    1616 */ 
    17 public class CABSESDLazySetPaddedSpinOptimizedUnrolledQueue<T> implements IQueue<T> { 
     17public class CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue<T> implements IQueue<T> { 
    1818    private static final boolean USE_BITMASK = true; 
    1919    //====================================================== 
    20     private static final AtomicLongFieldUpdater<CABSESDLazySetPaddedSpinOptimizedUnrolledQueue> tailUpdater = AtomicLongFieldUpdater.newUpdater( CABSESDLazySetPaddedSpinOptimizedUnrolledQueue.class, "tailCursor" ); 
    21     private static final AtomicLongFieldUpdater<CABSESDLazySetPaddedSpinOptimizedUnrolledQueue> headUpdater = AtomicLongFieldUpdater.newUpdater( CABSESDLazySetPaddedSpinOptimizedUnrolledQueue.class, "headCursor" ); 
     20    private static final AtomicLongFieldUpdater<CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue> tailUpdater = AtomicLongFieldUpdater.newUpdater( CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue.class, "tailCursor" ); 
     21    private static final AtomicLongFieldUpdater<CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue> headUpdater = AtomicLongFieldUpdater.newUpdater( CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue.class, "headCursor" ); 
    2222    //====================================================== 
    2323 
     
    6767 
    6868 
    69     public CABSESDLazySetPaddedSpinOptimizedUnrolledQueue( final int length ) { 
     69    public CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue( final int length ) { 
    7070        checkArgument( length > 0, "length(%s) must be >0", length ); 
    7171        if ( USE_BITMASK ) { 
     
    133133        final int index = index( newHead ); 
    134134        final T item = elements[index]; 
    135         elements[index] = null;//for GC 
     135        //elements[index] = null; 
    136136 
    137137        publishHead( newHead ); 
     
    152152 
    153153    @SuppressWarnings( "unchecked" ) 
    154     public static <T> IBoundedQueueFactory<T, CABSESDLazySetPaddedSpinOptimizedUnrolledQueue<T>> factory() { 
     154    public static <T> IBoundedQueueFactory<T, CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue<T>> factory() { 
    155155        return FACTORY; 
    156156    } 
    157157 
    158     public static final IBoundedQueueFactory FACTORY = new IBoundedQueueFactory<Object, CABSESDLazySetPaddedSpinOptimizedUnrolledQueue<Object>>() { 
     158    public static final IBoundedQueueFactory FACTORY = new IBoundedQueueFactory<Object, CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue<Object>>() { 
    159159        @Override 
    160         public CABSESDLazySetPaddedSpinOptimizedUnrolledQueue<Object> create( final int size ) { 
    161             return new CABSESDLazySetPaddedSpinOptimizedUnrolledQueue<Object>( size ); 
     160        public CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue<Object> create( final int size ) { 
     161            return new CABSESDLazySetPaddedSpinOptimizedCleanFreeUnrolledQueue<Object>( size ); 
    162162        } 
    163163 
Note: See TracChangeset for help on using the changeset viewer.