diff --git a/mps/code/amcssth.c b/mps/code/amcssth.c index 81eb0ad9b0d..a81be4961d4 100644 --- a/mps/code/amcssth.c +++ b/mps/code/amcssth.c @@ -10,6 +10,7 @@ #define _POSIX_C_SOURCE 199309L #include "fmtdy.h" +#include "fmtdytst.h" #include "testlib.h" #include "mpscamc.h" #include "mpsavm.h" @@ -45,13 +46,6 @@ static mps_pool_t pool; static mps_addr_t exactRoots[exactRootsCOUNT]; static mps_addr_t ambigRoots[ambigRootsCOUNT]; -mps_arena_t arena; -mps_fmt_t format; -mps_chain_t chain; -mps_root_t exactRoot, ambigRoot; -unsigned long objs = 0; - - /* report - report statistics from any terminated GCs */ static void report(mps_arena_t arena) @@ -82,6 +76,13 @@ static void report(mps_arena_t arena) } +mps_arena_t arena; +mps_fmt_t format; +mps_chain_t chain; +mps_root_t exactRoot, ambigRoot; +unsigned long objs = 0; + + /* make -- create one new object */ static mps_addr_t make(mps_ap_t ap) @@ -258,6 +259,8 @@ static void *test(void *arg, size_t s) churn(ap); + r = (size_t)rnd(); + if (r % initTestFREQ == 0) *(int*)busy_init = -1; /* check that the buffer is still there */