Top Description Interfaces Classes
module lwjgl.rpmalloc

Package org.lwjgl.system.rpmalloc

Annotations
@NonnullDefault

Contains bindings to the rpmalloc library. rpmalloc is a public domain cross platform lock free thread caching 16-byte aligned memory allocator implemented in C.

Interface Summary

Modifier and TypeInterface and Description
public interface
RPErrorCallbackI

Instances of this interface may be set to the RPMallocConfig struct.

public interface
RPMapFailCallbackI

Instances of this interface may be set to the RPMallocConfig struct.

public interface
RPMemoryMapCallbackI

Instances of this interface may be set to the RPMallocConfig struct.

public interface
RPMemoryUnmapCallbackI

Instances of this interface may be set to the RPMallocConfig struct.

Class Summary

Modifier and TypeClass and Description
pack-priv class
LibRPmalloc

Initializes the rpmalloc shared library.

public abstract class
RPErrorCallback

Instances of this class may be set to the RPMallocConfig struct.

public class
RPmalloc

Native bindings to the rpmalloc library.

public class
RPmallocAllocator

A MemoryAllocator implementation using the rpmalloc library.

public class
RPMallocConfig

This struct enables configuration of a memory mapper providing map/unmap of memory pages.

public class
RPmallocGlobalStatistics

Layout


struct rpmalloc_global_statistics_t {
    size_t mapped;
    size_t mapped_peak;
    size_t cached;
    size_t huge_alloc;
    size_t huge_alloc_peak;
    size_t mapped_total;
    size_t unmapped_total;
}
public class
RPmallocThreadStatistics

Layout


struct rpmalloc_thread_statistics_t {
    size_t sizecache;
    size_t spancache;
    size_t thread_to_global;
    size_t global_to_thread;
    struct {
        size_t current;
        size_t peak;
        size_t to_global;
        size_t from_global;
        size_t to_cache;
        size_t from_cache;
        size_t to_reserved;
        size_t from_reserved;
        size_t map_calls;
    } span_use[64];
    struct {
        size_t alloc_current;
        size_t alloc_peak;
        size_t alloc_total;
        size_t free_total;
        size_t spans_to_cache;
        size_t spans_from_cache;
        size_t spans_from_reserved;
        size_t map_calls;
    } size_use[128];
}
public abstract class
RPMapFailCallback

Instances of this class may be set to the RPMallocConfig struct.

public abstract class
RPMemoryMapCallback

Instances of this class may be set to the RPMallocConfig struct.

public abstract class
RPMemoryUnmapCallback

Instances of this class may be set to the RPMallocConfig struct.