#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include "omalloc/omConfig.h"
#include "omalloc/omDerivedConfig.h"
#include "omalloc/omStructs.h"
#include "omalloc/omAllocPrivate.h"
Go to the source code of this file.
◆ _POSIX_SOURCE
◆ INCR_FACTOR
◆ MH_TABLES_C
◆ MIN_BIN_BLOCKS
◆ OM_MAX_BLOCK_SIZE
◆ CreateDenseBins()
Definition at line 78 of file omTables1.c.
80 size_t size, align_size = SIZEOF_OM_ALIGNMENT;
82#ifdef OM_ALIGNMENT_NEEDS_WORK
92#ifdef OM_ALIGNMENT_NEEDS_WORK
93 if (
size >= n && align_size != SIZEOF_STRICT_ALIGNMENT)
95 align_size = SIZEOF_STRICT_ALIGNMENT;
#define SIZEOF_OM_BIN_PAGE
int GetMaxBlockThreshold()
size_t om_BinSize[SIZEOF_OM_BIN_PAGE/MIN_BIN_BLOCKS]
#define OM_MAX_BLOCK_SIZE
◆ GetMaxBlockThreshold()
int GetMaxBlockThreshold |
( |
| ) |
|
Definition at line 65 of file omTables1.c.
74 printf(
"error");fflush(stdout);
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 107 of file omTables1.c.
109 int max_bin_index = 0;
111#ifdef OM_HAVE_DENSE_BIN_DISTRIBUTION
122"#ifndef OM_TABLES_H\n"
123"#define OM_TABLES_H\n"
124"#define OM_MAX_BLOCK_SIZE %d\n"
125"#define OM_MAX_BIN_INDEX %d\n"
126"#define OM_SIZEOF_UNIQUE_MAX_BLOCK_THRESHOLD %d\n"
127"#endif /* OM_TABLES_H */\n"
◆ om_BinSize
Initial value:=
{ 8, 12, 16, 20,
24, 28, 32,
40, 48, 56, 64,
80, 96, 112, 128,
160, 192, 224,
Definition at line 50 of file omTables1.c.