Package it.unich.jgmp

Class AllocationMonitor.JGMPFree

  • All Implemented Interfaces:
    com.sun.jna.Callback, FreeFunc
    Enclosing class:
    AllocationMonitor

    private static class AllocationMonitor.JGMPFree
    extends java.lang.Object
    implements FreeFunc
    The custom deallocator.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.sun.jna.Callback

        com.sun.jna.Callback.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) FreeFuncByReference ffp  
      • Fields inherited from interface com.sun.jna.Callback

        FORBIDDEN_NAMES, METHOD_NAME
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void invoke​(com.sun.jna.Pointer ptr, SizeT alloc_size)
      De-allocate the space pointed to by ptr.
      • Methods inherited from class java.lang.Object

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

      • invoke

        public void invoke​(com.sun.jna.Pointer ptr,
                           SizeT alloc_size)
        Description copied from interface: FreeFunc
        De-allocate the space pointed to by ptr. ptr is never null, it’s always a previously allocated block of size bytes.
        Specified by:
        invoke in interface FreeFunc