water.nbhm
Class UtilUnsafe

java.lang.Object
  extended by water.nbhm.UtilUnsafe

public class UtilUnsafe
extends java.lang.Object

Simple class to obtain access to the Unsafe object. Unsafe is required to allow efficient CAS operations on arrays. Note that the versions in java.util.concurrent.atomic, such as AtomicLongArray, require extra memory ordering guarantees which are generally not needed in these algorithms and are also expensive on most processors.


Method Summary
static sun.misc.Unsafe getUnsafe()
          Fetch the Unsafe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUnsafe

public static sun.misc.Unsafe getUnsafe()
Fetch the Unsafe. Use With Caution.