- java.lang.Object
-
- java.lang.Number
-
- java.util.concurrent.atomic.AtomicLong
-
- org.jgroups.util.PaddedAtomicLong
-
- All Implemented Interfaces:
- java.io.Serializable
public class PaddedAtomicLong
extends java.util.concurrent.atomic.AtomicLong
Copied from http://mechanical-sympathy.blogspot.ch/2011/08/false-sharing-java-7.html. Switch to @Contended once
it is available.
- Since:
- 4.0
- Author:
- Bela Ban
- See Also:
- Serialized Form
-
-
Field Summary
Fields
Modifier and Type |
Field and Description |
long |
p1 |
long |
p2 |
long |
p3 |
long |
p4 |
long |
p5 |
long |
p6 |
long |
p7 |
-
Method Summary
-
Methods inherited from class java.util.concurrent.atomic.AtomicLong
accumulateAndGet, addAndGet, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, incrementAndGet, intValue, lazySet, longValue, set, toString, updateAndGet, weakCompareAndSet
-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
Field Detail
-
p1
public volatile long p1
-
p2
public volatile long p2
-
p3
public volatile long p3
-
p4
public volatile long p4
-
p5
public volatile long p5
-
p6
public volatile long p6
-
p7
public volatile long p7
Copyright © 1998-2020 Red Hat. All Rights Reserved.