Changeset 514 for Tests


Ignore:
Timestamp:
03/28/12 22:22:44 (10 years ago)
Author:
BegemoT
Message:
 
Location:
Tests/JAVA/test/src/main/java/test/threads/queue/unstressed/impl
Files:
2 edited

Legend:

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

    r513 r514  
    3535 
    3636    private final int length; 
     37    public volatile long p11, p12, p13, p14, p15, p16, p17, p18 = 7; 
    3738    private volatile long headCursor = 0; 
    38     public volatile long p11, p12, p13, p14, p15, p16, p17, p18 = 7; 
     39    public volatile long p21, p22, p23, p24, p25, p26, p27, p28 = 7; 
    3940    private volatile long tailCursor = 0; 
    40     public volatile long p21, p22, p23, p24, p25, p26, p27, p28 = 8; 
     41    public volatile long p31, p32, p33, p34, p35, p36, p37, p38 = 8; 
    4142 
    4243    private long lastHeadObserved = 0; 
    43     public volatile long p31, p32, p33, p34, p35, p36, p37, p38 = 9; 
     44    public volatile long p41, p42, p43, p44, p45, p46, p47, p48 = 9; 
    4445    private long lastTailObserved = 0; 
    4546 
     47 
     48    private final T[] elements; 
    4649 
    4750    public long sumPaddingToPreventOptimisation() { 
    4851        return p11 + p12 + p13 + p14 + p15 + p16 + p17 + p18 
    4952                + p21 + p22 + p23 + p24 + p25 + p26 + p27 + p28 
    50                 + p31 + p32 + p33 + p34 + p35 + p36 + p37 + p38; 
     53                + p31 + p32 + p33 + p34 + p35 + p36 + p37 + p38 
     54                + p41 + p42 + p43 + p44 + p45 + p46 + p47 + p48; 
    5155    } 
    52  
    53     private final T[] elements; 
    5456 
    5557 
  • Tests/JAVA/test/src/main/java/test/threads/queue/unstressed/impl/CABSESDLazySetPaddedUnrolledQueue.java

    r513 r514  
    3535 
    3636    private final int length; 
     37    public volatile long p11, p12, p13, p14, p15, p16, p17, p18 = 7; 
    3738    private volatile long headCursor = 0; 
    38     public volatile long p11, p12, p13, p14, p15, p16, p17, p18 = 7; 
     39    public volatile long p21, p22, p23, p24, p25, p26, p27, p28 = 7; 
    3940    private volatile long tailCursor = 0; 
    40     public volatile long p21, p22, p23, p24, p25, p26, p27, p28 = 8; 
     41    public volatile long p31, p32, p33, p34, p35, p36, p37, p38 = 8; 
    4142 
    4243    public long sumPaddingToPreventOptimisation() { 
    4344        return p11 + p12 + p13 + p14 + p15 + p16 + p17 + p18 
    44                 + p21 + p22 + p23 + p24 + p25 + p26 + p27 + p28; 
     45                + p21 + p22 + p23 + p24 + p25 + p26 + p27 + p28 
     46                + p31 + p32 + p33 + p34 + p35 + p36 + p37 + p38; 
    4547    } 
    4648 
Note: See TracChangeset for help on using the changeset viewer.