dlheap.h File Reference

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 []

Detailed Description

Contains all the classes required to approximate DLmalloc 2.7.0.

Author:
Emery Berger

Define Documentation

#define FALSE   0
Generated on Tue Aug 2 11:51:26 2011 for Galois by  doxygen 1.6.3