Package one.nio.mem

Interface Allocator

All Known Implementing Classes:
ArenaAllocator, FixedSizeAllocator, Malloc, MallocAnalyzer, MallocMT

public interface Allocator
Memory allocator
Author:
Vadim Tsesko
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    calloc(int size)
     
    void
    free(long address)
     
    long
    malloc(int size)
     
    void
    Verify the layout of the heap.
  • Method Details

    • malloc

      long malloc(int size)
    • calloc

      long calloc(int size)
    • free

      void free(long address)
    • verify

      void verify()
      Verify the layout of the heap. Expensive operation, used only for debugging purposes.