Minor tweaks to allow amcssth test to build under lii3gc at least.

Copied from Perforce
 Change: 180963
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Brooksby 2013-02-20 13:35:23 +00:00
parent 88ad39840e
commit a622cdfc07

View file

@ -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 */