Class ClosureMagazine


  • public final class ClosureMagazine
    extends java.lang.Object
    • Field Detail

      • foreign

        private final Foreign foreign
        A handle to the foreign interface to keep it alive as long as this object is alive
      • callContext

        private final CallContext callContext
        keep a reference to the call context, to avoid GC whilst the magazine is in use
      • magazineAddress

        private final long magazineAddress
      • disposed

        private volatile int disposed
      • UPDATER

        private static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<ClosureMagazine> UPDATER
    • Constructor Detail

      • ClosureMagazine

        ClosureMagazine​(Foreign foreign,
                        CallContext callContext,
                        long magazineAddress)
    • Method Detail

      • allocate

        public Closure.Handle allocate​(java.lang.Object proxy)
      • dispose

        public void dispose()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable