Class TransientNativeMemoryIO.Magazine

All Implemented Interfaces:
Runnable
Enclosing class:
TransientNativeMemoryIO

private static final class TransientNativeMemoryIO.Magazine extends PhantomReferenceReaper<Object> implements Runnable
Holder for a group of memory allocations.
  • Field Details

    • weakref

      private final WeakReference<Object> weakref
    • 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
  • Constructor Details

    • Magazine

      Magazine(Object sentinel, com.kenai.jffi.PageManager pm, long page, int pageCount)
  • Method Details

    • sentinel

      Object sentinel()
    • allocate

      long allocate(int size, int align)
    • run

      public final void run()
      Specified by:
      run in interface Runnable