Project

General

Profile

Actions

Feature #2058

closed

libumem should allow you to specify an allocator

Added by Robert Mustacchi over 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
lib - userland libraries
Start date:
2012-02-01
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

The default libumem allocator is the 'instant-fit' allocator. For various reasons, this can cause pathological memory growth of the heap, but without memory from it being in use. libumem, like vmem in the kernel supports three other memory allocators: best-fit, next-fit, and first-fit. There is currently no way to change this default otherwise.

To facilitate this, we add a new UMEM_OPTIONS, where you can specify allocator=(best|next|first|instant).

Actions

Also available in: Atom PDF