BSD Ports

devel/libarena 0.3.7 DragonFly

Custom Memory Allocator Interface

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel
Package size
13.1 KiB, 51.2 KiB installed

Description

libarena is a custom memory allocator interface and implementation. Four allocators are provided: flat LIFO arena allocator, object pool allocator and two malloc(3) wrappers: one which returns the pointers unadulterated and one which obeys the requested, arbitrary alignment. These can be used directly, or through their exported prototype interfaces.

libarena is meant to provide a baseline interface so allocators can be stacked, and to provide a simple and well defined interface for libraries and applications without becoming mired in features or capabilities. It is not meant to restrict or confine what custom allocators can actually accomplish. For instance, the included pool and arena allocators include a suite of string utilities which aren't available in the generic exportable interface. Note that these string utilities are built upon a generic interface (see util.h) which can take the prototypical allocation context, so they are also available to any 3rd party compatible allocators.

In the other systems

SystemPortVersion
DragonFlydevel/libarena0.3.7
FreeBSDdevel/libarena0.3.7
NetBSDdevel/libarena20080221
HardenedBSDdevel/libarena0.3.7
GhostBSDdevel/libarena0.3.7

Install

Binary package:

pkg install libarena

From DPorts:

cd /usr/dports/devel/libarena && make install clean

Dependencies

No port depends on this one.