4#define OM_CHECK CHECK_LEVEL
17#if defined (__hpux) || defined (__alpha) || defined (__svr4__) || defined (__SVR4)
19#if defined (__hpux) || defined (__svr4__) || defined (__SVR4)
61 "addr:%p is unaligned",
cell->addr);
68 "addr:%p is not strict unaligned",
cell->addr);
95 for (
i=0;
i<sizeW;
i++)
97 if (((
unsigned long*)
s1)[
i] != ((
unsigned long*)
s2)[
i])
100 "s1[%u]==%d != s2[%u]==%d",
i, ((
unsigned long*)
s1)[
i],
i, ((
unsigned long*)
s2)[
i]);
114 "addr %p unaligned", addr);
118 for (
i=0;
i<sizeW;
i++)
120 if (((
unsigned long*)addr)[
i] != value)
123 "word %d modified: is %u should be %u",
i, ((
unsigned long*)addr)[
i], value);
138#if END_CHECK_LEVEL > 0
152 if ((
i % 10000) == 0)
168 unsigned long spec =
random() + 1;
320 printf(
"\nomtTest Summary: ");
339 unsigned long spec,
j;
370 printf(
"\nCells: %d KeptAddr:%d AlwaysKeptAddr:%d\n",
n_cells,
378 printf(
"Checking Memory and all cells ");
386#if CHECK_LEVEL > 0 && TRACK_LEVEL > 0
406 if (
om_Info.CurrentRegionsAlloc > 0)
#define omDebugAddrAlignedBin
omError_t omTestMemory(int check_level)
#define omDebugAddrAlignedSize
#define omDebugAddrSize(addr, size)
#define omDebugAddrBin(addr, bin)
#define __omFreeBinAddr(addr)
size_t omSizeOfAddr(const void *addr)
void * om_AlwaysKeptAddrs
omError_t omReportError(omError_t error, omError_t report_error, OM_FLR_DECL, const char *fmt,...)
#define omInitGetBackTrace()
#define omFindInGList(ptr, next, what, value)
#define omRemoveFromGList(ptr, next, addr)
#define omListLength(ptr)
#define omIsOnGList(ptr, next, addr)
#define omMemsetW(P1, W, L)
omBinPage_t om_ZeroPage[]
void TestAlloc(omMemCell cell, unsigned long spec)
void TestAddrContent(void *addr, unsigned long value, size_t size)
omBin omtGetStickyBin(omBin bin)
omMemCell_t cells[MAX_CELLS]
void TestFree(omMemCell cell)
void omtMergeStickyBins(omMemCell cell, int n)
void TestRealloc(omMemCell cell, unsigned long spec)
void omtTestDebug(omMemCell cell)
void InitCellAddrContent(omMemCell cell)
void omCheckCells(int n, int level, omMemCell_t *cells)
void TestDup(omMemCell cell, unsigned long spec)
void TestAddrContentEqual(void *s1, void *s2, size_t size)
void omtTestAlloc(omMemCell cell, unsigned long spec)
#define myprintf(format, args...)
void omtTestReallocDebug(omMemCell cell, unsigned long spec)
void omtTestAllocKeep(omMemCell cell, unsigned long spec)
void omtTestDup(omMemCell cell, unsigned long spec)
void omtTestReallocKeep(omMemCell cell, unsigned long spec)
#define DO_FREE_CHECK(spec)
void omtTestAllocDebug(omMemCell cell, unsigned long spec)
void omtTestFreeDebug(omMemCell cell)
void omtTestRealloc(omMemCell cell, unsigned long spec)
void omtTestFree(omMemCell cell)
#define SET_SIZE(spec, size)
void omtTestDupDebug(omMemCell cell, unsigned long spec)
void omtTestFreeKeep(omMemCell cell)
void omtTestDupKeep(omMemCell cell, unsigned long spec)
#define omGetStickyBinOfBin(B)
#define omMergeStickyBinIntoBin(A, B)
#define omPrintUsedAddrs(F, max)
#define omPrintBinStats(F)
#define omInitRet_2_Info(argv0)