![]() |
My Project
|
#include "omalloc/omAllocSystem.h"
Go to the source code of this file.
Data Structures | |
struct | omBinPage_t |
struct | omBin_t |
struct | omSpecBin_t |
Functions | |
void * | omAllocBinFromFullPage (omBin bin) |
void | omFreeToPageFault (omBinPage page, void *addr) |
void * | omDoRealloc (void *old_addr, size_t new_size, int flags) |
Variables | |
omSpecBin | om_SpecBin |
omBin | om_StickyBins |
omBinPage_t | om_ZeroPage [] |
omBin | om_Size2Bin [] |
omBin_t | om_StaticBin [] |
struct omBinPage_s |
Definition at line 18 of file omAllocPrivate.h.
Data Fields | ||
---|---|---|
void * | bin_sticky | |
void * | current | |
omBinPage | next | |
omBinPage | prev | |
omBinPageRegion | region | |
long | used_blocks |
struct omBin_s |
struct omSpecBin_s |
#define ___omTypeRealloc | ( | old_addr, | |
new_type, | |||
new_addr, | |||
new_size, | |||
SIZE_2_BIN, | |||
REALLOC_BIN, | |||
flags ) |
Definition at line 314 of file omAllocPrivate.h.
#define ___omTypeReallocSize | ( | old_addr, | |
old_size, | |||
new_type, | |||
new_addr, | |||
new_size, | |||
SIZE_2_BIN, | |||
REALLOC_BIN, | |||
flags ) |
Definition at line 331 of file omAllocPrivate.h.
#define __omFree | ( | addr | ) |
Definition at line 298 of file omAllocPrivate.h.
#define __omFreeBinAddr | ( | addr | ) |
Definition at line 163 of file omAllocPrivate.h.
Definition at line 284 of file omAllocPrivate.h.
Definition at line 124 of file omAllocPrivate.h.
Definition at line 213 of file omAllocPrivate.h.
Definition at line 229 of file omAllocPrivate.h.
#define __omTypeAlloc0Aligned __omTypeAlloc0 |
Definition at line 281 of file omAllocPrivate.h.
#define __omTypeAlloc0Bin | ( | type, | |
addr, | |||
bin ) |
Definition at line 154 of file omAllocPrivate.h.
#define __omTypeAllocAligned __omTypeAlloc |
Definition at line 280 of file omAllocPrivate.h.
#define __omTypeAllocBin | ( | type, | |
addr, | |||
bin ) |
Definition at line 143 of file omAllocPrivate.h.
Definition at line 115 of file omAllocPrivate.h.
#define __omTypeRealloc | ( | old_addr, | |
new_type, | |||
new_addr, | |||
new_size ) ___omTypeRealloc(old_addr, new_type, new_addr, new_size, omSmallSize2Bin, __omTypeReallocBin, 0) |
Definition at line 348 of file omAllocPrivate.h.
#define __omTypeRealloc0 | ( | old_addr, | |
new_type, | |||
new_addr, | |||
new_size ) ___omTypeRealloc(old_addr, new_type, new_addr, new_size, omSmallSize2Bin, __omTypeRealloc0Bin, 1) |
Definition at line 350 of file omAllocPrivate.h.
#define __omTypeRealloc0Aligned __omTypeRealloc0 |
Definition at line 368 of file omAllocPrivate.h.
#define __omTypeRealloc0AlignedSize __omTypeRealloc0Size |
Definition at line 370 of file omAllocPrivate.h.
Definition at line 190 of file omAllocPrivate.h.
#define __omTypeRealloc0Size | ( | old_addr, | |
old_size, | |||
new_type, | |||
new_addr, | |||
new_size ) ___omTypeReallocSize(old_addr, old_size, new_type, new_addr, new_size, omSmallSize2Bin, __omTypeRealloc0Bin, 1) |
Definition at line 354 of file omAllocPrivate.h.
#define __omTypeReallocAligned __omTypeRealloc |
Definition at line 367 of file omAllocPrivate.h.
#define __omTypeReallocAlignedSize __omTypeReallocSize |
Definition at line 369 of file omAllocPrivate.h.
Definition at line 172 of file omAllocPrivate.h.
#define __omTypeReallocSize | ( | old_addr, | |
old_size, | |||
new_type, | |||
new_addr, | |||
new_size ) ___omTypeReallocSize(old_addr, old_size, new_type, new_addr, new_size, omSmallSize2Bin, __omTypeReallocBin, 0) |
Definition at line 352 of file omAllocPrivate.h.
#define _omSizeOfBinAddr | ( | addr | ) | ((omSizeWOfBinAddr(addr)) << LOG_SIZEOF_LONG) |
Definition at line 102 of file omAllocPrivate.h.
#define omGetBinOfAddr | ( | addr | ) | omGetBinOfPage(omGetBinPageOfAddr(addr)) |
Definition at line 80 of file omAllocPrivate.h.
#define omGetStickyOfPage | ( | page | ) | (((unsigned long) ((page)->bin_sticky)) & ((unsigned long)SIZEOF_VOIDP-1)) |
Definition at line 67 of file omAllocPrivate.h.
#define omGetTopBinOfAddr | ( | addr | ) | omGetTopBinOfPage(((omBinPage) omGetPageOfAddr(addr))) |
Definition at line 78 of file omAllocPrivate.h.
#define omGetTopBinOfPage | ( | page | ) | ((omBin) ( ((unsigned long) ((page)->bin_sticky)) & ~((unsigned long)SIZEOF_VOIDP - 1))) |
Definition at line 65 of file omAllocPrivate.h.
Definition at line 71 of file omAllocPrivate.h.
Definition at line 74 of file omAllocPrivate.h.
#define omSetTopBinOfPage | ( | page, | |
bin ) (page)->bin_sticky= (void*)((unsigned long)bin + omGetStickyOfPage(page)) |
Definition at line 69 of file omAllocPrivate.h.
#define omSizeOfBinAddr | ( | addr | ) | _omSizeOfBinAddr(addr) |
Definition at line 97 of file omAllocPrivate.h.
Definition at line 100 of file omAllocPrivate.h.
#define omSizeWOfBinAddr | ( | addr | ) | ((omGetTopBinOfAddr(addr))->sizeW) |
Definition at line 103 of file omAllocPrivate.h.
#define omSmallSize2Bin | ( | size | ) | om_Size2Bin[((size) -1)>>LOG_SIZEOF_OM_ALIGNMENT] |
Definition at line 211 of file omAllocPrivate.h.
#define SIZEOF_OM_BIN_PAGE (SIZEOF_SYSTEM_PAGE - SIZEOF_OM_BIN_PAGE_HEADER) |
Definition at line 32 of file omAllocPrivate.h.
#define SIZEOF_OM_BIN_PAGE_HEADER (5*SIZEOF_VOIDP + SIZEOF_LONG) |
Definition at line 31 of file omAllocPrivate.h.
Definition at line 119 of file om_Alloc.c.
Definition at line 229 of file om_Alloc.c.
Definition at line 167 of file om_Alloc.c.
|
extern |
Definition at line 84 of file omAllocPrivate.h.
|
extern |
Definition at line 20 of file om_Alloc.c.
|
extern |
|
extern |