338 int i=0, error_test = 1;
339 unsigned long spec,
j;
343 int last_kept_freed = 0;
355 if (argc > 1) sscanf(argv[1],
"%d", &error_test);
356 if (argc > 2) sscanf(argv[2],
"%d", &
seed);
359 if (argc > 3) sscanf(argv[3],
"%d", &n);
360 if (argc > 4) sscanf(argv[4],
"%d", &decr);
362 if (decr < 2) decr = 2;
363 printf(
"seed == %d\n",
seed);
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
387 if (error_test &&
errors == 0)
406 if (
om_Info.CurrentRegionsAlloc > 0)
414 if (n <= 0 || n_cells <= 100)
420 n_cells = n_cells / decr;
468 printf(
"%d:",
i / 1000);
475 if ((
i % 10000) == 0 &&
i != n_cells &&
i!=last_kept_freed)
void * om_AlwaysKeptAddrs
#define omInitGetBackTrace()
#define omListLength(ptr)
void TestAlloc(omMemCell cell, unsigned long spec)
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 omCheckCells(int n, int level, omMemCell_t *cells)
void TestDup(omMemCell cell, unsigned long spec)
#define myprintf(format, args...)
#define omPrintUsedAddrs(F, max)
#define omPrintBinStats(F)
#define omInitRet_2_Info(argv0)