342 int i=0, error_test = 1;
343 unsigned long spec,
j;
347 int last_kept_freed = 0;
358 if (argc > 1) sscanf(argv[1],
"%d", &error_test);
359 if (argc > 2) sscanf(argv[2],
"%d", &
seed);
362 if (argc > 3) sscanf(argv[3],
"%d", &n);
363 if (argc > 4) sscanf(argv[4],
"%d", &decr);
365 if (decr < 2) decr = 2;
366 printf(
"seed == %d\n",
seed);
373 printf(
"\nCells: %d KeptAddr:%d AlwaysKeptAddr:%d\n", n_cells,
381 printf(
"Checking Memory and all cells ");
389 #if CHECK_LEVEL > 0 && TRACK_LEVEL > 0
390 if (error_test &&
errors == 0)
409 if (
om_Info.CurrentRegionsAlloc > 0)
417 if (n <= 0 || n_cells <= 100)
423 n_cells = n_cells / decr;
471 printf(
"%d:",
i / 1000);
478 if ((
i % 10000) == 0 &&
i != n_cells &&
i!=last_kept_freed)
void omPrintBinStats(FILE *fd)
void * om_AlwaysKeptAddrs
void omPrintUsedAddrs(FILE *fd, int max_frames)
#define omInitGetBackTrace()
#define omListLength(ptr)
void omInitRet_2_Info(const char *argv0)
void omPrintStats(FILE *fd)
void omPrintInfo(FILE *fd)
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...)