Changeset 543 for Tests


Ignore:
Timestamp:
04/11/12 10:18:53 (10 years ago)
Author:
BegemoT
Message:

padded D, unpadded queue

Location:
Tests/JAVA/test/src/main/java
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Tests/JAVA/test/src/main/java/com/lmax/disruptor/Sequence.java

    r542 r543  
    1111 */ 
    1212public class Sequence { 
    13 //    private final PaddedAtomicLong value = new PaddedAtomicLong( Sequencer.INITIAL_CURSOR_VALUE ); 
    14     private final AtomicLong value = new AtomicLong( Sequencer.INITIAL_CURSOR_VALUE ); 
     13    private final PaddedAtomicLong value = new PaddedAtomicLong( Sequencer.INITIAL_CURSOR_VALUE ); 
     14//    private final AtomicLong value = new AtomicLong( Sequencer.INITIAL_CURSOR_VALUE ); 
    1515 
    1616    /** Default Constructor that uses an initial value of {@link com.lmax.disruptor.Sequencer#INITIAL_CURSOR_VALUE}.*/ 
  • Tests/JAVA/test/src/main/java/test/threads/queue/unstressed/DisruptorTask.java

    r542 r543  
    5555                                         final IUsefulWorkEmulator<LongValueMessage>[] emulators, 
    5656                                         final EventFactory<LongValueMessage> eventFactory ) { 
    57         final ClaimStrategy claimStrategy = new UnpaddedSingleThreadedClaimStrategy( bufferSize() ); 
     57        final ClaimStrategy claimStrategy = new SingleThreadedClaimStrategy( bufferSize() ); 
    5858 
    5959        ringBuffer = new RingBuffer<LongValueMessage>( 
  • Tests/JAVA/test/src/main/java/test/threads/queue/unstressed/impl/CABSESDLazySetPaddedSpinOptimizedCleanFreeTASUnrolledQueue.java

    r532 r543  
    3737    private final int length; 
    3838 
    39     public volatile long $pad11, $pad12, $pad13, $pad14, $pad15, $pad16, $pad17, $pad18 = 7; 
     39//    public volatile long $pad11, $pad12, $pad13, $pad14, $pad15, $pad16, $pad17, $pad18 = 7; 
    4040    private volatile long headCursor = 0; 
    41     public volatile long $pad21, $pad22, $pad23, $pad24, $pad25, $pad26, $pad27, $pad28 = 7; 
     41//    public volatile long $pad21, $pad22, $pad23, $pad24, $pad25, $pad26, $pad27, $pad28 = 7; 
    4242    private volatile long tailCursor = 0; 
    43     public volatile long $pad31, $pad32, $pad33, $pad34, $pad35, $pad36, $pad37, $pad38 = 8; 
     43//    public volatile long $pad31, $pad32, $pad33, $pad34, $pad35, $pad36, $pad37, $pad38 = 8; 
    4444 
    4545    private long lastHeadObserved = 0; 
    46     public volatile long $pad41, $pad42, $pad43, $pad44, $pad45, $pad46, $pad47, $pad48 = 9; 
     46//    public volatile long $pad41, $pad42, $pad43, $pad44, $pad45, $pad46, $pad47, $pad48 = 9; 
    4747    private long lastTailObserved = 0; 
    48     public volatile long $pad51, $pad52, $pad53, $pad54, $pad55, $pad56, $pad57, $pad58 = 9; 
     48//    public volatile long $pad51, $pad52, $pad53, $pad54, $pad55, $pad56, $pad57, $pad58 = 9; 
    4949 
    5050 
Note: See TracChangeset for help on using the changeset viewer.