Changeset 530 for Tests


Ignore:
Timestamp:
04/03/12 13:56:41 (10 years ago)
Author:
BegemoT
Message:
 
File:
1 edited

Legend:

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

    r482 r530  
    1515public final class CABSESDMaskedLongQueue extends AbstractSESDSequencer { 
    1616 
    17     private static final int PAD = 1; 
    1817    private final long[] elements; 
    1918 
     
    2928 
    3029        mask = size - 1; 
    31         elements = new long[size * PAD]; 
     30        elements = new long[size]; 
    3231    } 
    3332 
     
    5251 
    5352    private int index( final long sequence ) { 
    54         return ( ( int ) sequence & mask ) * PAD; 
     53        return ( int ) ( sequence & mask ); 
    5554    } 
    5655} 
Note: See TracChangeset for help on using the changeset viewer.