Class OffHeapMemoryCleaner

  • All Implemented Interfaces:
    Runnable, Cleaner

    public class OffHeapMemoryCleaner
    extends Object
    implements Cleaner
    This GC cleaner is used to release off-heap memory after the corresponding holding object has been garbage collected. This is an internal class and should not be used directly.
    Author:
    royer
    • Constructor Detail

      • OffHeapMemoryCleaner

        public OffHeapMemoryCleaner​(Long pAddress,
                                    Long pSignature,
                                    String pName,
                                    StackTraceElement[] pAllocationStackTrace)
        Creates a cleaner given an address, signature, name and allocation stacktrace. The name and allocation stacktrace are useful to figure out where a problematic memory region was allocated.
        Parameters:
        pAddress - address to free
        pSignature - corresponding signature
        pName - name of memory
        pAllocationStackTrace - allocation stack trace at allocation point
    • Method Detail

      • run

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