Class MemoryAccess


  • public final class MemoryAccess
    extends java.lang.Object
    Memory access operations which encapsulate the use of Unsafe.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private MemoryAccess()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void acquireFence()
      Ensures that loads before the fence will not be reordered with loads and stores after the fence.
      static void fullFence()
      Ensures that loads and stores before the fence will not be reordered with loads and stores after the fence.
      static void releaseFence()
      Ensures that loads and stores before the fence will not be reordered with stores after the fence.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MemoryAccess

        private MemoryAccess()
    • Method Detail

      • acquireFence

        public static void acquireFence()
        Ensures that loads before the fence will not be reordered with loads and stores after the fence.
      • releaseFence

        public static void releaseFence()
        Ensures that loads and stores before the fence will not be reordered with stores after the fence.
      • fullFence

        public static void fullFence()
        Ensures that loads and stores before the fence will not be reordered with loads and stores after the fence.