Contains all the classes required to approximate DLmalloc 2.7.0. More...
#include <assert.h>
#include "adapt.h"
#include "dllist.h"
#include "sllist.h"
#include "coalesceableheap.h"
Go to the source code of this file.
Classes | |
class | HL::CoalesceableMmapHeap< Mmap > |
class | HL::SelectMmapHeap< ThresholdBytes, SmallHeap, super > |
Use Mmap (here the superheap) for objects above a certain size. More... | |
class | HL::Threshold< ThresholdBytes, super > |
class | HL::DLBigHeapType< super > |
class | HL::DLSmallHeapType< super > |
The "small heap" -- non-coalescing "fastbins" (quicklists). More... | |
class | HL::LeaHeap< Sbrk, Mmap > |
This heap approximates the algorithms used by DLmalloc 2.7.0. More... | |
Namespaces | |
namespace | HL |
A thread-wrapper of childlike simplicity :). | |
namespace | DLBigHeapNS |
All of the bins & size functions for the "big heap". | |
namespace | HL::DLBigHeapNS |
namespace | DLSmallHeapNS |
The size functions for the "small" heap (fastbins). | |
namespace | HL::DLSmallHeapNS |
Defines | |
#define | FALSE 0 |
Enumerations | |
enum | { HL::DLBigHeapNS::NUMBINS = sizeof(bins) / sizeof(size_t) } |
enum | { HL::DLBigHeapNS::BIG_OBJECT = 2147483648U } |
enum | { HL::DLSmallHeapNS::NUMBINS = 8 } |
Functions | |
int | HL::DLBigHeapNS::log2 (const size_t sz) |
Compute the log base two. | |
int | HL::DLBigHeapNS::getSizeClass (const size_t sz) |
size_t | HL::DLBigHeapNS::getClassSize (const int i) |
int | HL::DLSmallHeapNS::getSizeClass (const size_t sz) |
size_t | HL::DLSmallHeapNS::getClassSize (const int i) |
Variables | |
const size_t | HL::DLBigHeapNS::bins [] |
Contains all the classes required to approximate DLmalloc 2.7.0.
#define FALSE 0 |