Class TransientNativeMemory.Magazine

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) long allocate​(int size, int align)  
      void finalizeReferent()
      Invoked on a background thread after the referent has been garbage collected unless security restrictions prevented starting a background thread, in which case this method is invoked when new references are created.
      (package private) TransientNativeMemory.Sentinel sentinel()  
      • Methods inherited from class java.lang.ref.PhantomReference

        get
      • Methods inherited from class java.lang.ref.Reference

        clear, clone, enqueue, isEnqueued, reachabilityFence
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pm

        private final com.kenai.jffi.PageManager pm
      • page

        private final long page
      • end

        private final long end
      • pageCount

        private final int pageCount
      • memory

        private long memory
    • Method Detail

      • allocate

        long allocate​(int size,
                      int align)
      • finalizeReferent

        public final void finalizeReferent()
        Description copied from interface: FinalizableReference
        Invoked on a background thread after the referent has been garbage collected unless security restrictions prevented starting a background thread, in which case this method is invoked when new references are created.