Class TransientNativeMemory.Magazine

All Implemented Interfaces:
FinalizableReference
Enclosing class:
TransientNativeMemory

private static final class TransientNativeMemory.Magazine extends FinalizablePhantomReference<TransientNativeMemory.Sentinel>
Holder for a group of memory allocations.
  • Field Details

    • sentinelReference

      private final Reference<TransientNativeMemory.Sentinel> sentinelReference
    • 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

  • Method Details

    • sentinel

    • allocate

      long allocate(long 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.